Skip to content

Commit ad0abe1

Browse files
committed
fix: don't run action-test in forks
1 parent 39464c1 commit ad0abe1

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)