`cosign verify-attestation --type cyclonedx` returns `none of the attestations matched the predicate type`
IntermediateTroubleshootingSupply chain: signing, SBOM and dependencies
Answer
Likely causes → The attestation was created with a different predicate type (e.g. spdxjson, or a custom URI) or attached to a different digest.
Diagnose →
cosign tree ghcr.io/acme/api@sha256:...
cosign download attestation ghcr.io/acme/api@sha256:... | jq -r '.payload' | base64 -d | jq -r .predicateType
Fix → Verify with the type that was used, or regenerate:
syft ghcr.io/acme/api@sha256:... -o cyclonedx-json > sbom.cdx.json
cosign attest --yes --type cyclonedx --predicate sbom.cdx.json ghcr.io/acme/api@sha256:...
Prevent → Standardise predicate types in the release template.
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 imagesIntermediateKyverno `verifyImages` rejects pods: `failed to verify image ... : no signatures found` for a signed private ECR imageAdvancedAfter enabling signature verification, pods fail because the manifest uses `image: api:1.4` and the policy mutates it to a digest the registry rejectsAdvanced