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.
More on Supply chain: signing, SBOM and dependencies
`cosign verify` fails with `Error: no matching signatures` for an image CI says it signedBeginnerKeyless `cosign verify` fails: `none of the expected identities matched what was in the certificate`Intermediate`cosign sign` in GitHub Actions fails with `getting signer: getting key from Fulcio: ... no OIDC token`BeginnerKey-based `cosign verify --key cosign.pub` fails after a key rotation for older imagesIntermediate`cosign verify-attestation --type cyclonedx` returns `none of the attestations matched the predicate type`IntermediateKyverno `verifyImages` rejects pods: `failed to verify image ... : no signatures found` for a signed private ECR imageAdvanced