You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat: adopt GitHub attestations for release artifact signing #2006
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.:
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.
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: writeid-token: write # required for OIDC token used by attestationattestations: 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:
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)
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).
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.
Activity
TerryHowe commentedon Mar 12, 2026
Implementation Plan: GitHub Artifact Attestations
Based on a review of the current release setup (
.github/workflows/release-github.ymland.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.ymlbut 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 thebuildjob:Step 2 — Collect artifact paths after goreleaser
goreleaser writes all release artifacts to
dist/. After therun goreleaserstep, add a step that enumerates the archive files to attest:Step 3 — Generate attestations
Add an attestation step using
actions/attest-build-provenance: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.bodytemplate if one exists) to document how users can verify artifacts:FeynmanZhou commentedon Mar 18, 2026
@oras-project/oras-cli @oras-project/oras-owners let's vote on the issue to agree on the solution.
github-actions commentedon May 17, 2026
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.
bb-Ricardo commentedon Jul 13, 2026
I would be happy to this implemented. We use cosign to verify the oras download and are currently not able to that.
github-actions commentedon Sep 12, 2026
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.
github-actions commentedon Oct 12, 2026
This issue was closed because it has been stalled for 30 days with no activity.
TerryHowe commentedon Oct 23, 2026
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).
TerryHowe commentedon Oct 23, 2026
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.