Trivy

An open-source scanner that finds vulnerable packages, secrets and misconfigurations in repositories, container images, Kubernetes manifests and Terraform.

In more detail

trivy fs reads lockfiles in a repository, trivy image reads the packages inside an image and trivy config checks manifests and infrastructure code. --severity and --exit-code turn a scan into a gate.

Examples

trivy image --exit-code 1 --severity HIGH,CRITICAL registry.example/app@sha256:deadbeef
The course runs trivy image with --severity HIGH,CRITICAL and --exit-code 1 against the exact image digest, so high or critical findings fail the pipeline before promotion.

Related terms

Taught in

References

Certification courses