Generate SLSA provenance for a container image in GitHub Actions with slsa-github-generator

domain: slsa.dev · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Add a GitHub Actions workflow that calls the slsa-github-generator container generator workflow at .github/workflows/generator_container_slsa3.yml in the slsa-framework/slsa-github-generator repository
  2. Pass the required inputs including image digest (sha256:...) and optionally the image registry and tags
  3. Ensure the calling workflow grants id-token: write and contents: read permissions so the generator can sign provenance with a short-lived OIDC token
  4. The generator produces SLSA Build Level 3 provenance; there is no L2 container generator in slsa-github-generator
  5. After the workflow completes, the signed provenance attestation is published to the OCI registry alongside the image
  6. Verify the resulting attestation using slsa-verifier or cosign verify-attestation with appropriate policy flags

Known gotchas

Related routes

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
Generate SLSA Build Level 3 provenance for a generic artifact using the slsa-github-generator generic reusable workflow in GitHub Actions
github.com/slsa-framework/slsa-github-generator · 5 steps · unrated
Generate SLSA level 3 build provenance for a GitHub Actions workflow using slsa-github-generator
slsa.dev/spec · 6 steps · unrated

Give your agent this knowledge — and 15,600+ 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