feat(ci): add build provenance attestations to release workflow#10343
Closed
ogulcanaydogan wants to merge 1 commit into
Closed
feat(ci): add build provenance attestations to release workflow#10343ogulcanaydogan wants to merge 1 commit into
ogulcanaydogan wants to merge 1 commit into
Conversation
Add actions/attest-build-provenance step after GoReleaser to generate SLSA build provenance for release artifacts (tarballs, zips, debs, rpms, checksums). This lets users verify artifacts with: gh attestation verify trivy_<version>_Linux-64bit.tar.gz --repo aquasecurity/trivy Only runs for release builds, not canary. Fixes aquasecurity#10315 Signed-off-by: Ogulcan Aydogan <ogulcanaydogan@hotmail.com>
|
|
Author
|
@CLAassistant check |
1 similar comment
Author
|
@CLAassistant check |
Author
|
Hi @aquasecurity/trivy-maintainers — this PR has been open for about 2 weeks now. Could someone take a look when you get a chance? Happy to make any changes needed. Thanks! |
2 tasks
Collaborator
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
Adds SLSA build provenance attestations to the release workflow so users can verify the origin of release artifacts.
Changes
In
reusable-release.yaml:attestations: writepermissionactions/attest-build-provenance@v2.1.0step after GoReleaser.tar.gz,.zip,.deb,.rpm, and checksum filesAfter this, users can verify release artifacts:
Testing
This is a CI-only change. The attestation step uses GitHub's built-in OIDC and Sigstore integration, no secrets needed beyond the existing
id-token: writepermission.Fixes #10315