A Trivy plugin that scans the images of a kubernetes resource
This plugin has been retired in the favour of: https://github.com/aquasecurity/trivy-plugin-webhook
$ trivy plugin install github.com/aquasecurity/trivy-plugin-webhook
$ trivy webhook -h
Usage: trivy webhook [-h,--help] TYPE NAME [TRIVY OPTION]
A Trivy plugin that scans the images of a kubernetes resource.
Options:
-h, --help Show usage.
Examples:
# Scan a Pod
trivy webhook pod mypod
# Scan a Deployment
trivy webhook deployment mydeployment -n mynamespace
# Scan a Job and filter by severity
trivy webhook job myjob -n mynamespace -- --severity CRITICAL
Trivy's options need to be passed after --
.
# Scan a Pod
$ trivy webhook pod mypod
# Scan a Deployment
$ trivy webhook deployment mydeployment -n mynamespace
# Scan a Job and filter by severity
$ trivy webhook job myjob -n mynamespace -- --severity CRITICAL