Skip to content

Commit c7d107d

Browse files
cpanatoclaude
andauthored
ci: skip smoke tests on pull requests from forks (#1804)
Pull requests from forks don't get an OIDC token, so the signing step always fails with "CI: no tokens available". Skip the jobs for those runs instead of failing them. Signed-off-by: Carlos Panato <ctadeu@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 207277d commit c7d107d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎.github/workflows/smoke-test.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ permissions:
1313
jobs:
1414
sign-verify:
1515
name: Sign/Verify Artifact
16+
# Fork PRs don't get an OIDC token, so signing can't work there.
17+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
1618
runs-on: ubuntu-latest
1719
permissions:
1820
contents: read
@@ -48,6 +50,8 @@ jobs:
4850

4951
sign-verify-mock:
5052
name: Sign/Verify Artifact (Mock Stack)
53+
# Fork PRs don't get an OIDC token, so signing can't work there.
54+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
5155
runs-on: ubuntu-latest
5256
permissions:
5357
contents: read
@@ -101,6 +105,8 @@ jobs:
101105

102106
sign-verify-staging:
103107
name: Sign/Verify Artifact (Staging)
108+
# Fork PRs don't get an OIDC token, so signing can't work there.
109+
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
104110
runs-on: ubuntu-latest
105111
permissions:
106112
contents: read

0 commit comments

Comments
 (0)