Interview Prep/GitHub Actions/Caching, Artifacts, Builds & Scans

Trivy blocks the pipeline on a CRITICAL CVE in a base image package with no fix available.

IntermediateTroubleshootingCaching, Artifacts, Builds & Scans
Answer

Likely causes → Gate configured without --ignore-unfixed, or the base image is outdated.

Diagnose →

trivy image --severity CRITICAL,HIGH --format table $IMAGE

Fix → Rebuild on the latest base or switch to a smaller base (distroless, alpine); gate with ignore-unfixed: true; for accepted risk, add a .trivyignore entry with CVE, reason and expiry date reviewed by security.

Prevent → Weekly scheduled rebuilds to pick up base image patches.

All GitHub Actions questions Roadmap: GitHub Actions

More on Caching, Artifacts, Builds & Scans