Skip to content

ci: skip attestation and pre-release for fork PRs - #28

Merged
rhoades-brown merged 1 commit into
mainfrom
fix/ci-fork-attestation
Aug 29, 2026
Merged

ci: skip attestation and pre-release for fork PRs#28
rhoades-brown merged 1 commit into
mainfrom
fix/ci-fork-attestation

Conversation

@rhoades-brown

Copy link
Copy Markdown
Owner

Fork PRs do not have access to the OIDC token required by actions/attest-build-provenance (id-token: write permission is restricted for fork PR workflows). This causes the attestation step to fail with:

Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable

This adds a same-repo guard (github.event.pull_request.head.repo.full_name == github.repository) to the attestation, version extraction, and pre-release steps so they only run for PRs from branches within the repo, not from forks.

Fork PRs still get the full build, lint, and test pipeline — only the attestation and pre-release creation are skipped.

@rhoades-brown
rhoades-brown merged commit 4d82c19 into main Aug 29, 2026
5 checks passed
@rhoades-brown
rhoades-brown deleted the fix/ci-fork-attestation branch August 29, 2026 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant