How do you scan images and dependencies in the pipeline without drowning in noise?
IntermediateProductionSupply Chain and Pipeline Security
Answer
Gate on what is actionable: fail on CRITICAL/HIGH with a fix available (--ignore-unfixed), report the rest. Scan the image you will actually ship, and use a minimal base (distroless, Alpine, Chainguard/Wolfi) to cut findings. Use VEX statements or an expiring ignore file for confirmed not-affected CVEs, with owner and date. Rescan stored images on a schedule since new CVEs appear after the build.
trivy image --severity CRITICAL,HIGH --ignore-unfixed --exit-code 1 ghcr.io/acme/shop-api:$GIT_SHA
More on Supply Chain and Pipeline Security
What is a software supply chain attack, and where does the pipeline fit?BeginnerWhat is an SBOM and why do you generate one in CI?BeginnerHow do you sign container images and verify them at deploy time?IntermediateWhat is SLSA and which level should a typical team aim for?IntermediateHow do you verify provenance before deploying?AdvancedHow do you prevent dependency confusion and typosquatting in build pipelines?Advanced