Skip to content

ci: add GitHub native build attestations for Docker Hub and GHCR#96

Merged
chorrell merged 1 commit into
mainfrom
ci/add-build-attestations
May 26, 2026
Merged

ci: add GitHub native build attestations for Docker Hub and GHCR#96
chorrell merged 1 commit into
mainfrom
ci/add-build-attestations

Conversation

@chorrell
Copy link
Copy Markdown
Owner

Uses actions/attest-build-provenance (SHA-pinned to v4.1.0) to publish GitHub native SLSA provenance attestations alongside the pushed image, in addition to the existing buildx provenance: mode=max and sbom: true.

Changes:

  • Adds id-token: write and attestations: write to the push job permissions
  • Adds id: build to the Build and push step to capture the image digest
  • Two attestation steps: one for Docker Hub (index.docker.io/...) and one for GHCR (ghcr.io/...)

Attestations are verifiable with gh attestation verify.

@chorrell chorrell force-pushed the ci/add-build-attestations branch from 9bc32a4 to 5760018 Compare May 26, 2026 04:13
@chorrell chorrell merged commit 2c6f58d into main May 26, 2026
3 checks passed
@chorrell chorrell deleted the ci/add-build-attestations branch May 26, 2026 04:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant