Repository navigation
ci: publish build provenance attestations for release artifacts - #2271
Merged
Merged
Conversation
Releases were only signed with GPG, so users who verify downloads with sigstore tooling could not verify ORAS. The release workflow now attests the archives and the checksums file with actions/attest-build-provenance. The GPG signing stays as it is. scripts/release.sh validate checks the attestation of every archive and fails if one is missing, and publish adds the gh attestation verify steps to the release notes. RELEASING.md describes the new steps and how users can verify a download. Fixes oras-project#2269 Signed-off-by: Amit Gangwar <[email protected]>
Xerox563
requested review from
TerryHowe,
Wwwsylvia,
sabre1041,
sajayantony and
shizhMSFT
as code owners
October 23, 2026 11:52
TerryHowe
reviewed
Oct 23, 2026
Verify attestations against release-github.yml and the release tag, and reject ones built on self-hosted runners. --source-ref needs gh v2.68.0, so check for it and raise the documented minimum. Signed-off-by: Amit Gangwar <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2271 +/- ##
=======================================
Coverage 60.81% 60.81%
=======================================
Files 140 140
Lines 6091 6091
=======================================
Hits 3704 3704
Misses 2166 2166
Partials 221 221 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
4 tasks
TerryHowe
pushed a commit
to oras-project/oras-www
that referenced
this pull request
Nov 11, 2026
## Summary ORAS CLI [v1.3.6](https://github.com/oras-project/oras/releases/tag/v1.3.6) was released on 2026-10-24, but the 1.3 docs and the home page still point at v1.3.5. This PR covers the oras-www checklist in the post-release tasks of the oras `RELEASING.md` (oras-project/oras#2286). - map `1.3` to `1.3.6` in `versions-map`. `npm run refresh-commands` against the v1.3.6 binary leaves the command pages unchanged, because the help text is the same as in v1.3.5 - update every pinned version on the installation page (download snippets, `go install`, the `ghcr.io/oras-project/oras` image and the `doras` alias) and the sample `oras version` output, taken from the v1.3.6 release binary - fix the Go version required for `go install`: the page said 1.24, but every 1.3 release has needed a newer Go, and v1.3.6's `go.mod` requires Go 1.26.7 - update the home page Linux install snippet to v1.3.6 - update the binary verification guide example to v1.3.6. The `gpg --verify` output now shows the v1.3.6 signature time; before, it still showed the v1.3.4 one - add a "Verifying build provenance" section to the verification guide. Starting with v1.3.6, release archives and the checksums file have GitHub artifact attestations (oras-project/oras#2271), which were not documented anywhere on the site. The section shows `gh attestation verify` with real output and how to pin the release tag with `--source-ref` No blog post, since one is optional for a patch release. ## Validation - downloaded the v1.3.6 release assets and ran each documented command for real: `gpg --verify` on the checksums file and the archive, `sha256sum --ignore-missing -c`, `oras version`, and `gh attestation verify` (with and without `--source-ref`). The output in the docs comes from those runs - `gh attestation verify` succeeds for all 12 release archives and the checksums file. It fails for v1.3.5 files (no attestation) and when `--source-ref` names a different tag - `ghcr.io/oras-project/oras:v1.3.6` exists - `npm run refresh-commands`: no changes under `versioned_docs` - `npm test` (30 passed), `npm run check-links`, `docusaurus build` (the new `#verifying-build-provenance` anchor resolves) - `vale` on the changed pages: 0 errors, 0 warnings Signed-off-by: NopeCharon <[email protected]>
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.
Fixes #2269
This publishes GitHub artifact attestations (SLSA build provenance) for the release archives and the checksums file, as described in option A of #2006. GPG signing is unchanged.
Release workflow (
release-github.yml)id-token: writeandattestations: writeto the goreleaser job.dist/*.tar.gz,dist/*.zipanddist/*_checksums.txtwithactions/attest-build-provenance, pinned to the v4.2.2 commit SHA.Release script (
scripts/release.sh)validatechecks thatgh attestation verifyis available, then runs it on every archive and the checksums file in_dist/after the checksum check. It fails if any of them has no valid attestation.publishadds thegh attestation verifyexample to the Verification section of the release notes, next to the GPG instructions, and mentionsgh attestation downloadandcosign verify-blob-attestation.Docs (
RELEASING.md)ghv2.49.0 or later, the first version withgh attestation.KEYSandgh attestation verify.Testing
actionlintpasses on the workflow, andbash -nandshellcheckshow no new findings inrelease.sh.gh attestation verifyexits 0 for an attested release archive (cli/cli) and non-zero for a file without an attestation, which is what makesvalidatestop.