Interview Prep/CI/CD/Secrets, Security and Pipeline Performance

`cosign verify` fails: `no matching signatures: none of the expected identities matched`.

AdvancedTroubleshootingSecrets, Security and Pipeline Performance
Answer

Likely causes → Certificate identity or issuer values differ from the actual workflow identity (branch, tag, workflow path).

Diagnose →

cosign verify IMAGE --certificate-identity-regexp '.*' \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com | jq '.[0].optional'

Fix → Use the correct --certificate-identity (e.g. https://github.com/org/repo/.github/workflows/release.yml@refs/tags/v1.0.0) or a regexp.

Prevent → Standardise the signing workflow and its identity.

All CI/CD questions

More on Secrets, Security and Pipeline Performance