Skip to content

Commit 16d14f4

Browse files
committed
Avoid using MATZBOT_GITHUB_TOKEN for pull requests
1 parent b28c1d2 commit 16d14f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/check_misc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
2020
with:
21-
token: ${{ secrets.MATZBOT_GITHUB_TOKEN }}
21+
token: ${{ (github.repository == 'ruby/ruby' && !startsWith(github.event_name, 'pull')) && secrets.MATZBOT_GITHUB_TOKEN || secrets.GITHUB_TOKEN }}
2222

2323
- uses: ./.github/actions/setup/directories
2424
with:

0 commit comments

Comments
 (0)