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

Scanner says the image is affected by CVE-X but your VEX says `not_affected`; the gate still fails

IntermediateTroubleshootingSupply chain: signing, SBOM and dependencies
Answer

Likely causes → The scanner is not reading the VEX document, the product/purl identifiers in the VEX do not match the scanned components, or the format is unsupported.

Diagnose →

trivy image --vex ./vex.openvex.json --debug ghcr.io/acme/api@sha256:... 2>&1 | grep -i vex

Fix → Use exact purls (including version) in products/subcomponents, and pass the VEX file explicitly or attach it as an attestation the scanner can discover.

Prevent → Generate VEX with tooling (vexctl create) and test it in CI against the gate.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Supply chain: signing, SBOM and dependencies