Avoid using MATZBOT_GITHUB_TOKEN for pull requests
This commit is contained in:
parent
b28c1d2c56
commit
16d14f425f
2
.github/workflows/check_misc.yml
vendored
2
.github/workflows/check_misc.yml
vendored
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user