Repository navigation
Description
Summary
Publish GitHub artifact attestations (SLSA build provenance) for ORAS CLI release artifacts, so users can verify downloads in a pipeline without managing GPG keys. This is Option A from #2006.
Current state
Releases are signed with GPG only. .goreleaser.yml produces detached .asc signatures for each archive, SBOM and the checksums file, and #2112 added signing the checksums in the release workflow. There are no attestations: for example, GET /repos/oras-project/oras/attestations/sha256:<digest of oras_1.3.5_linux_amd64.tar.gz> returns 404. Users who verify downloads with sigstore tooling can't verify ORAS today (see the comments on #2006).
Proposed work
In .github/workflows/release-github.yml:
- Add
id-token: writeandattestations: writeto the job that runs goreleaser. - After goreleaser, attest the release archives (
dist/*.tar.gz,dist/*.zip) and the checksums file withactions/attest-build-provenance, pinned to a commit SHA like every other action in the repo.subject-pathaccepts a glob or a newline-separated list, so no extra collection step is needed. - Keep the existing GPG signing. Attestations supplement it; removing GPG is a separate decision.
Release tooling (scripts/release.sh):
validate: in addition to checking SHA-256 checksums, rungh attestation verify <archive> --repo oras-project/orason each downloaded archive in_dist/, and fail if any attestation is missing or invalid.publish: the verification information it adds to the release notes should include the attestation check alongside the GPG instructions:The attestation is a sigstore bundle, so it can also be fetched withgh attestation verify oras_<version>_linux_amd64.tar.gz --repo oras-project/oras
gh attestation downloadand checked withcosign verify-blob-attestation.
Docs (RELEASING.md), updated in the same PR because the release process changes:
- Prerequisites: release managers need a
ghversion that supportsgh attestation verify. - 3. Validate the release: say that
validatenow verifies build-provenance attestations as well as checksums. - 4. Publish: say that the release notes now include attestation verification steps alongside the GPG ones.
- Add a short "Verifying release artifacts" section for users, covering both GPG (
KEYS) andgh attestation verify.
Acceptance criteria
- A pre-release tag publishes attestations for every archive and the checksums file.
gh attestation verifysucceeds for each archive against--repo oras-project/oras.scripts/release.sh validatefails when an archive has no valid attestation.- Release notes generated by
publishinclude the attestation verification steps. RELEASING.mdreflects the updatedvalidate/publishbehavior and prerequisites.
Out of scope
- Attesting or signing the
ghcr.io/oras-project/orasimages (release-ghcr.yml); that can be a follow-up usingpush-to-registry. - Notation or cosign signing (Options B and C in feat: adopt GitHub attestations for release artifact signing #2006).
Activity