Interview Prep/CI/CD/Supply Chain and Pipeline Security

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
All CI/CD questions

More on Supply Chain and Pipeline Security