summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Kokubun <takashikkbn@gmail.com>2025-10-03 23:38:55 -0700
committerTakashi Kokubun <takashikkbn@gmail.com>2025-10-03 23:39:23 -0700
commit72f8e3e71b1e1e816f4f7fbaf7e4fafdeca87881 (patch)
tree2847aa9220e7c4e512647e7ec01525d1480b5750
parent4ea84bf58b3690c3e7e61cbf30ad6252863ce133 (diff)
Make sure GITHUB_TOKEN is set
-rw-r--r--.github/workflows/check_misc.yml1
-rw-r--r--tool/notes-github-pr.rb2
2 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/check_misc.yml b/.github/workflows/check_misc.yml
index 347e8a9b19..b332eef541 100644
--- a/.github/workflows/check_misc.yml
+++ b/.github/workflows/check_misc.yml
@@ -137,6 +137,7 @@ jobs:
env:
GITHUB_OLD_SHA: ${{ github.event.before }}
GITHUB_NEW_SHA: ${{ github.event.after }}
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ github.repository == 'ruby/ruby' && github.ref == 'refs/heads/master' && github.event_name == 'push' }}
- uses: ./.github/actions/slack
diff --git a/tool/notes-github-pr.rb b/tool/notes-github-pr.rb
index 2bea10575b..e282386eba 100644
--- a/tool/notes-github-pr.rb
+++ b/tool/notes-github-pr.rb
@@ -100,7 +100,7 @@ module Git
end
end
-github = GitHub.new(ENV.fetch("GITHUB_TOKEN"))
+github = GitHub.new(ENV.fetch('GITHUB_TOKEN'))
repo_path, *rest = ARGV
rest.each_slice(3).map do |oldrev, newrev, refname|