Generate SLSA Build Level 2 provenance attestations in GitHub Actions and verify with slsa-verifier

domain: docs.github.com/actions/security-for-github-actions/using-artifact-attestations · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Add the actions/attest-build-provenance step to your GitHub Actions workflow after the build step, pointing subject-path at your built artifact or image digest.
  2. Ensure the workflow has id-token: write permission so GitHub Actions can request an OIDC token for Sigstore-based signing.
  3. The action generates a Sigstore-signed in-toto provenance statement and uploads it to GitHub's attestation store, returning an attestation ID.
  4. Download the attestation bundle for an artifact using the GitHub CLI: gh attestation download ARTIFACT_PATH -R org/repo.
  5. Verify the provenance locally or in CI using slsa-verifier: slsa-verifier verify-artifact ARTIFACT_PATH --provenance-path provenance.json --source-uri github.com/org/repo.
  6. Inspect the provenance predicate to confirm the builder ID, source commit SHA, and workflow path match expected values before promoting an artifact to production.

Known gotchas

Related routes

Generate a SLSA provenance attestation for a build artifact using slsa-github-generator in GitHub Actions and verify it with slsa-verifier
slsa.dev · 6 steps · unrated
Generate SLSA level 3 build provenance for a GitHub Actions workflow using slsa-github-generator
slsa.dev/spec · 6 steps · unrated
Generate SLSA provenance for a container image build in GitHub Actions using the slsa-framework/slsa-github-generator and verify the attestation with cosign
slsa.dev · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans