Container scanning
Trivy inspects image packages against vulnerability information. Pin the scanned image digest and scanner/database versions; a mutable tag can change between scan and deployment. Scan image digest sha256:abc rather than only latest. A report identifies package, installed version and fixed version; rebuilding with the fix requires rescanning the resulting digest, not reusing the old report.
Scan image digest sha256:abc rather than only latest. A report identifies package, installed version and fixed version; rebuilding with the fix requires rescanning the resulting digest, not reusing the old report.
An image digest identifies content; a package inventory lists installed components; a vulnerability identifier links an issue to affected versions. Imagine CI scans one digest but deployment later uses a tag pointing elsewhere. The clean scan has no reliable relationship to the deployed bytes. Carry digest identity from build through scan, registry and release evidence. Distinguish installed vulnerable packages from runtime reachability: the scanner reports the former, while exposure analysis informs the latter. Record database freshness because missing or stale intelligence affects results. Scanning every release improves consistency but can slow builds and produce recurring findings. Cache carefully and keep provenance, while treating the report as one security signal rather than a guarantee that the image contains no dangerous behavior.
A report identifies package, installed version and fixed version; rebuilding with the fix requires rescanning the resulting digest, not reusing the old report.
Scanning a mutable image tag proves the later deployed bytes are identical.