Interview Prep/DevSecOps/Supply chain: signing, SBOM and dependencies

SLSA provenance verification fails: `slsa-verifier: ... expected source 'github.com/acme/api', got 'github.com/acme-fork/api'`

IntermediateTroubleshootingSupply chain: signing, SBOM and dependencies
Answer

Likely causes → The artifact was built from a fork or a different repo, or the verifier was given the wrong --source-uri.

Diagnose →

slsa-verifier verify-image ghcr.io/acme/api@sha256:... \
  --source-uri github.com/acme/api --source-tag v1.4.0 --print-provenance | jq .predicate.invocation

Fix → If the source is wrong, do not deploy: rebuild from the canonical repo. If your parameters were wrong, correct --source-uri/--source-branch.

Prevent → Only release workflows in the canonical repo can push to production registries.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Supply chain: signing, SBOM and dependencies