Skip to content

Release: grant actions: read to the shared-workflow caller - #47

Merged
NSchatz merged 1 commit into
mainfrom
ci/actions-read
Aug 25, 2026
Merged

Release: grant actions: read to the shared-workflow caller#47
NSchatz merged 1 commit into
mainfrom
ci/actions-read

Conversation

@NSchatz

@NSchatz NSchatz commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

The shared release pipeline declares actions: read, which it uses to read this caller's environment protection. A calling job that pins contents/id-token/pull-requests and nothing else grants actions: none, and a called workflow may only downgrade the caller's token, never escalate it, so GitHub refused the whole workflow at startup: 1s, no jobs, no logs, no refusal printed.

The shared file states the precondition in its own header: grant callers this FIRST, adopt the file second. It was done the other way round, so every Release in the fleet has been failing at startup_failure since. Found by just ci-sweep on the umbrella, which now reports default-branch CI per workflow.

One line, workflow-only. No source, test or package change.

The shared release pipeline declares `actions: read`, which it uses to read
this caller`s environment protection. A calling job that pins
contents/id-token/pull-requests and nothing else grants `actions: none`, and a
called workflow may only downgrade the caller`s token, never escalate it, so
GitHub refused the whole workflow at startup: 1s, no jobs, no logs, and no
refusal printed anywhere. The shared file states the precondition in its own
header, that callers be granted this FIRST and the file adopted second; it was
adopted the other way round and every Release in the fleet has been failing at
startup since.
@NSchatz
NSchatz merged commit 1f26d41 into main Aug 25, 2026
8 checks passed
@NSchatz
NSchatz deleted the ci/actions-read branch August 25, 2026 22:47
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