Skip to content

Commit 8620fb8

Browse files
authored
Merge pull request #20 from rust-lang/fix-don't-run-action-test-in-forks
fix: don't run action-test in forks
2 parents 39464c1 + ad0abe1 commit 8620fb8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ jobs:
9999
name: Action Test
100100
runs-on: ubuntu-24.04
101101
# This job fails in forks, because it requires `id-token: write` permission.
102-
if: github.repository_owner == 'rust-lang'
102+
if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'rust-lang/crates-io-auth-action' }}
103103

104104
# Required for OpenID Connect token retrieval.
105105
permissions:

0 commit comments

Comments
 (0)