Skip to content

feat(ci): add build provenance attestations to release workflow#10343

Closed
ogulcanaydogan wants to merge 1 commit into
aquasecurity:mainfrom
ogulcanaydogan:feat/build-provenance-attestation
Closed

feat(ci): add build provenance attestations to release workflow#10343
ogulcanaydogan wants to merge 1 commit into
aquasecurity:mainfrom
ogulcanaydogan:feat/build-provenance-attestation

Conversation

@ogulcanaydogan

Copy link
Copy Markdown

Summary

Adds SLSA build provenance attestations to the release workflow so users can verify the origin of release artifacts.

Changes

In reusable-release.yaml:

  • Added attestations: write permission
  • Added actions/attest-build-provenance@v2.1.0 step after GoReleaser
  • Only runs for non-canary builds
  • Covers: .tar.gz, .zip, .deb, .rpm, and checksum files

After this, users can verify release artifacts:

gh attestation verify trivy_0.69.3_Linux-64bit.tar.gz --repo aquasecurity/trivy

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: write permission.

Fixes #10315

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>
@ogulcanaydogan ogulcanaydogan requested a review from knqyf263 as a code owner March 8, 2026 10:30
@CLAassistant

CLAassistant commented Mar 8, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@ogulcanaydogan

Copy link
Copy Markdown
Author

@CLAassistant check

1 similar comment
@ogulcanaydogan

Copy link
Copy Markdown
Author

@CLAassistant check

@ogulcanaydogan

Copy link
Copy Markdown
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!

@knqyf263

Copy link
Copy Markdown
Collaborator

Thanks for the contribution.

However, this functionality has already been implemented in #10316, which was opened alongside the linked issue #10315 on the same day and has been merged. Closing as duplicate.

@knqyf263 knqyf263 closed this Apr 24, 2026
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.

Add build provenance attestations for release artifacts

3 participants