Skip to content

ci: publish GitHub artifact attestations for release artifacts #2269

Description

@TerryHowe

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:

  1. Add id-token: write and attestations: write to the job that runs goreleaser.
  2. After goreleaser, attest the release archives (dist/*.tar.gz, dist/*.zip) and the checksums file with actions/attest-build-provenance, pinned to a commit SHA like every other action in the repo. subject-path accepts a glob or a newline-separated list, so no extra collection step is needed.
  3. Keep the existing GPG signing. Attestations supplement it; removing GPG is a separate decision.

Release tooling (scripts/release.sh):

  1. validate: in addition to checking SHA-256 checksums, run gh attestation verify <archive> --repo oras-project/oras on each downloaded archive in _dist/, and fail if any attestation is missing or invalid.
  2. publish: the verification information it adds to the release notes should include the attestation check alongside the GPG instructions:
    gh attestation verify oras_<version>_linux_amd64.tar.gz --repo oras-project/oras
    The attestation is a sigstore bundle, so it can also be fetched with gh attestation download and checked with cosign verify-blob-attestation.

Docs (RELEASING.md), updated in the same PR because the release process changes:

  1. Prerequisites: release managers need a gh version that supports gh attestation verify.
  2. 3. Validate the release: say that validate now verifies build-provenance attestations as well as checksums.
  3. 4. Publish: say that the release notes now include attestation verification steps alongside the GPG ones.
  4. Add a short "Verifying release artifacts" section for users, covering both GPG (KEYS) and gh attestation verify.

Acceptance criteria

  • A pre-release tag publishes attestations for every archive and the checksums file.
  • gh attestation verify succeeds for each archive against --repo oras-project/oras.
  • scripts/release.sh validate fails when an archive has no valid attestation.
  • Release notes generated by publish include the attestation verification steps.
  • RELEASING.md reflects the updated validate/publish behavior and prerequisites.

Out of scope

Activity

  1. added
    enhancement
    help wanted
    on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cienhancementhelp wanted

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions