Open
feat: add attest-images action for container image build provenance attestation#864
attest-images action for container image build provenance attestation#864Conversation
Copilot
AI
changed the title
[WIP] Update workflow for container supply-chain with image provenance
feat: add Jul 7, 2026
attest-images action for container image build provenance attestation
neilime
requested changes
Jul 8, 2026
Contributor
Author
Added in commit Created
Also registered the new test in |
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.
Adds a dedicated
actions/docker/attest-imagescomposite action for SLSA build provenance attestation usingactions/attest(notactions/attest-build-provenance, which GitHub now deprecates for new implementations). Signing and attestation are distinct supply-chain controls — this keeps them properly separated.New action:
actions/docker/attest-imagesimagesinput format assign-images(registry/name:tag@digest, JSON array, or delimited string)registry/name + digest— multiple tags sharing a digest produce one attestationactions/attest@v4.1.1(SHA-pinned) per unique subject; supports up to 5 unique images per invocation via static conditional steps (composite actions cannot dynamically loop overuses:steps)push-to-registry: trueby default, storing the attestation as an OCI artifact alongside the imageid-token: write,attestations: writeUpdated:
docker-build-imagesreusable workflowAdds an
attestboolean input (defaultfalse) that triggers attestation after manifest publication, mirroring the existingsigninput pattern:The
publish-manifestsjob gainsattestations: writepermission (only exercised whenattest: true).Signing vs. attestation
sign-images(cosign)attest-images(this PR)Both should be used together for a complete supply-chain posture. Attestations can be verified with
gh attestation verify oci://ghcr.io/….