fix(release): grant attestations read on the oci-image call job - #8
Merged
Merged
Conversation
The v0.1.0 tag run failed at startup: 'The nested job oci-image is requesting attestations: read, but is only allowed attestations: none'. PR 2 added that permission to the callee in go-oci-build.yml, because the composite's installed acquisition path runs gh attestation verify, but did not raise the caller's ceiling in release.yml. A called workflow can never request more than the calling job grants. Consumer callers need the same grant, so the copyable example and the OCI how-to now document it.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The
v0.1.0tag run failed at startup with:PR #7 added
attestations: readto the callee job ingo-oci-build.yml— correct, since the composite's installed acquisition path runsgh attestation verify— but did not raise the caller's ceiling inrelease.yml. A called workflow can never request more permission than the calling job grants, so the whole run is rejected before any job starts.Changes
.github/workflows/release.yml:oci-imagecall job now grantsattestations: read.examples/go-release/.github/workflows/release.yml: same grant, so the copyable consumer caller works.docs/how-to/configure-oci-images.md: documents the builder job permission set and why omitting it fails at startup.Verification
oci-imagewas the only mismatch, and there are now zero.mise exec -- moon run root:checkgreen.The review process missed this because PR #7's CI runs on
pull_request, andrelease.ymlonly runs on tags — the caller half is unreachable until a real release. I am adding the caller-ceiling audit to the standing per-PR method.