Skip Test Live Registry Publish on fork PRs#10997
Conversation
The job authenticates to ESC via OIDC, but GitHub does not grant id-token: write to pull_request runs from forks regardless of the permissions: block. The job fails with "Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable" on every fork PR (e.g. #10932). Add the same fork guard already used by sentinel and preview so the job skips cleanly. Same-repo PRs are unaffected. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Registry Review — PR #10997SummaryThis is a minimal, correct fix that resolves the consistent failure of What I checked
Observations (non-blocking)
VerdictLGTM. Two-line change, scoped narrowly, matches existing conventions, and the reasoning is captured both in an inline comment and the PR description. Mention @claude if you'd like additional reviews or fixes. |
|
Your site preview for commit b179396 is ready! 🎉 http://registry--origin-pr-10997-b1793964.s3-website.us-west-2.amazonaws.com/registry. |
Summary
if: github.event.pull_request.head.repo.full_name == github.repository) to thetest-live-publishjob inpull-request.yml.sentinel(line 19) andpreview(line 165).The job authenticates to ESC via OIDC, but GitHub does not grant
id-token: writetopull_requestruns from forks regardless ofpermissions: write-all. It fails on every fork PR withUnable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable(e.g. #10932). With this guard, the job skips cleanly on fork PRs; same-repo PRs are unaffected.Trade-off: fork PRs lose the registry-publish dry-run validation. The same check still runs on
masterviapush.yml. If we want the dry-run on fork PRs too, the bigger fix is to refactorpush-registry.py --dry-runto skip the authenticated existence-check call so it doesn't needPULUMI_ACCESS_TOKEN.Test plan
Test Live Registry PublishTest Live Registry Publishas skipped (not failed)🤖 Generated with Claude Code