Skip to content

feat: adopt GitHub attestations for release artifact signing #2006

Closed

Description

@TerryHowe

Overview

This issue tracks adopting a modern signing mechanism for ORAS release artifacts, such as Notary Project (notation), sigstore/cosign attestations, or GitHub artifact attestations.

This was raised as a side note in #2005, where a user noted that GPG-based .asc signature files were missing from the release. The user also pointed out that a modern signing alternative would be acceptable, as long as binary integrity can be verified in a pipeline.

Motivation

  • GitHub attestations are natively integrated with GitHub Actions and require no external key management.
  • Notary Project (notation) is a CNCF project purpose-built for signing software supply chain artifacts and aligns naturally with the OCI/ORAS ecosystem.
  • Sigstore/cosign provides keyless signing via OIDC, improving the security posture compared to long-lived GPG keys.
  • Any of these approaches would allow users to verify release artifacts programmatically, e.g.:
    # GitHub attestations
    gh attestation verify oras_linux_amd64.tar.gz --repo oras-project/oras
    
    # cosign
    cosign verify-blob --certificate-identity ... oras_linux_amd64.tar.gz
    

Proposed approach

  • Option A (preferred): Integrate actions/attest-build-provenance (GitHub attestations) into the release workflow to generate SLSA provenance attestations for all release artifacts.
  • Option B: Use notation to sign release artifacts with a Notary-compatible signature, aligning with the broader CNCF supply chain security ecosystem.
  • Option C: Use sigstore/cosign-installer + cosign sign-blob for keyless signing.
  • Document the verification steps in the release notes and/or README.

References

Activity

  1. added
    enhancement
    on Mar 12, 2026
  2. TerryHowe commented on Mar 12, 2026

    @TerryHowe
    MemberAuthor

    Implementation Plan: GitHub Artifact Attestations

    Based on a review of the current release setup (.github/workflows/release-github.yml and .goreleaser.yml), here is a concrete plan to add GitHub artifact attestations to the release pipeline.


    Background

    The current release workflow uses goreleaser to build and publish all release artifacts. GPG signing is present in .goreleaser.yml but commented out. The goal is to replace (or supplement) this with GitHub's native artifact attestations, which provide SLSA provenance without managing GPG keys.


    Step 1 — Update workflow permissions

    In .github/workflows/release-github.yml, add the required permissions to the build job:

    permissions:
      contents: write
      id-token: write      # required for OIDC token used by attestation
      attestations: write  # required to publish the attestation

    Step 2 — Collect artifact paths after goreleaser

    goreleaser writes all release artifacts to dist/. After the run goreleaser step, add a step that enumerates the archive files to attest:

    - name: Collect release artifacts
      id: artifacts
      run: |
        files=$(find dist/ -type f \( -name "*.tar.gz" -o -name "*.zip" \) | tr '\n' ' ')
        echo "paths=$files" >> "$GITHUB_OUTPUT"

    Step 3 — Generate attestations

    Add an attestation step using actions/attest-build-provenance:

    - name: Attest release artifacts
      uses: actions/attest-build-provenance@v2
      with:
        subject-path: ${{ steps.artifacts.outputs.paths }}

    This generates a signed SLSA provenance attestation for each artifact and publishes it to the repository's attestations store.


    Step 4 — Update release notes template

    Update the release notes (or the goreleaser release.body template if one exists) to document how users can verify artifacts:

    ## Verifying release artifacts
    
    All release artifacts are signed with GitHub artifact attestations.
    Verify any artifact with the [GitHub CLI](https://cli.github.com/):
    
    ```sh
    gh attestation verify <artifact> --repo oras-project/oras
    
    
    ---
    
    ### Step 5 — Remove / clean up the old GPG signing remnants
    
    The commented-out `signs:` block in `.goreleaser.yml` and any references to GPG keys in the release message template can be removed to avoid confusion.
    
    ---
    
    ### Checklist
    
    - [ ] Add `id-token: write` and `attestations: write` permissions to the release workflow job
    - [ ] Add artifact collection step after goreleaser
    - [ ] Add `actions/attest-build-provenance` step
    - [ ] Update release notes to document verification steps
    - [ ] Remove stale GPG signing comments from `.goreleaser.yml`
    - [ ] Test against a pre-release tag (e.g. `v1.4.0-rc.1`) before a full release
    
    ---
    
    ### References
    
    - [`actions/attest-build-provenance`](https://github.com/actions/attest-build-provenance)
    - [GitHub docs: artifact attestations](https://docs.github.com/en/actions/how-tos/secure-your-work/use-artifact-attestations/use-artifact-attestations)
    - [SLSA provenance](https://slsa.dev/provenance)
    
  3. FeynmanZhou commented on Mar 18, 2026

    @FeynmanZhou
    Member

    @oras-project/oras-cli @oras-project/oras-owners let's vote on the issue to agree on the solution.

  4. github-actions commented on May 17, 2026

    @github-actions

    This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

  5. added
    stale
    on May 17, 2026
  6. added and removed
    stale
    on May 23, 2026
  7. bb-Ricardo commented on Jul 13, 2026

    @bb-Ricardo

    I would be happy to this implemented. We use cosign to verify the oras download and are currently not able to that.

  8. github-actions commented on Sep 12, 2026

    @github-actions

    This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

  9. added
    stale
    on Sep 12, 2026
  10. github-actions commented on Oct 12, 2026

    @github-actions

    This issue was closed because it has been stalled for 30 days with no activity.

  11. removed
    stale
    on Oct 12, 2026
  12. TerryHowe commented on Oct 23, 2026

    @TerryHowe
    MemberAuthor

    Filed #2269 (help wanted) for Option A: publishing GitHub artifact attestations from the release workflow, keeping the existing GPG signatures. Leaving this issue open for the maintainer decision on Options B and C (notation, cosign).

  13. TerryHowe commented on Oct 23, 2026

    @TerryHowe
    MemberAuthor

    Closing: GitHub artifact attestations (Option A) are the chosen approach for now. Implementation is tracked in #2269 (help wanted). Notation or cosign signing can be proposed in a new issue if needed later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions