Verify SLSA build provenance for a container image using slsa-verifier and enforce source and builder constraints

domain: security/compliance · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Install slsa-verifier; it is a standalone binary that verifies SLSA provenance attestations stored in OCI registries or as separate files.
  2. Run slsa-verifier verify-image <image-digest-reference> --source-uri <expected-repo-uri> --builder-id <expected-builder-id> to verify both the provenance signature and the claimed source repository and builder.
  3. Confirm the exit code: slsa-verifier exits 0 on successful verification and non-zero on failure, making it suitable for use as a pipeline gate.
  4. For non-container artifacts, use slsa-verifier verify-artifact <artifact-path> --provenance-path <provenance-file> --source-uri <expected-repo-uri> to verify file-based provenance.
  5. Integrate slsa-verifier into a deployment pipeline step that runs before deploying to production, so only images with verified provenance matching the expected source and builder are promoted.

Known gotchas

Related routes

Verify a container image SLSA provenance attestation with slsa-verifier
slsa.dev · 6 steps · unrated
Generate SLSA provenance for a container image in GitHub Actions with slsa-github-generator
slsa.dev · 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,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