Skip to content

fix: grant the attestation permissions release.yml needs - #69

Merged
joshrotenberg merged 1 commit into
mainfrom
fix/release-please-attestation-permissions
Jul 24, 2026
Merged

fix: grant the attestation permissions release.yml needs#69
joshrotenberg merged 1 commit into
mainfrom
fix/release-please-attestation-permissions

Conversation

@joshrotenberg

Copy link
Copy Markdown
Owner

The binaries job added in #68 broke Release Please at startup. main currently
cannot run it at all.

release.yml declares id-token: write and attestations: write so tinfoil can
attach build provenance attestations to the uploaded archives. A reusable
workflow cannot request more permissions than its caller was granted, and
release-please.yml granted only contents: write and pull-requests: write,
so GitHub rejected the whole file before any job started.

The only diagnostic GitHub gives is:

X This run likely failed because of a workflow file issue.

No annotation, and the API returns 404 for both annotations and jobs, because no
jobs were ever created. Nothing points at permissions.

Grants both permissions to the caller, which is the narrower fix. The
alternative is attestations: false in the :tinfoil config, which drops the
permissions from the generated workflow but also drops provenance.

Verified by parsing the workflow and confirming all four jobs still resolve.
Merging this should let Release Please run and open the release PR for #68.

The binaries job added in #68 broke Release Please at startup. release.yml
declares id-token: write and attestations: write for build provenance, and a
reusable workflow cannot request more than its caller was granted, so the call
made GitHub reject the entire workflow file. The only diagnostic offered is
"This run likely failed because of a workflow file issue".

Grants both to the caller.
@joshrotenberg
joshrotenberg merged commit c752a73 into main Jul 24, 2026
2 checks passed
@joshrotenberg
joshrotenberg deleted the fix/release-please-attestation-permissions branch July 24, 2026 23:53
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