Skip to content

Commit

Permalink
Avoid using MATZBOT_GITHUB_TOKEN for pull requests
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Oct 14, 2023
1 parent b28c1d2 commit 16d14f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/check_misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
token: ${{ secrets.MATZBOT_GITHUB_TOKEN }}
token: ${{ (github.repository == 'ruby/ruby' && !startsWith(github.event_name, 'pull')) && secrets.MATZBOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}

- uses: ./.github/actions/setup/directories
with:
Expand Down

0 comments on commit 16d14f4

Please sign in to comment.