`gh attestation verify` fails with `no attestations found` for a release binary
BeginnerTroubleshootingSupply chain: signing, SBOM and dependencies
Answer
Likely causes → The workflow did not run actions/attest-build-provenance, lacked attestations: write/id-token: write, or you verify a re-zipped file with a different hash.
Diagnose →
sha256sum app-linux-amd64
gh attestation verify app-linux-amd64 --owner acme
Fix →
permissions: { id-token: write, attestations: write, contents: read }
- uses: actions/attest-build-provenance@v2
with: { subject-path: dist/app-linux-amd64 }
Prevent → Verify attestations as a step in the deploy job so a missing one fails early.
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