Created
October 18, 2024 01:16
-
-
Save adriantorrie/be1afa3fa2c37e7995dfa84f8168b8ce to your computer and use it in GitHub Desktop.
Trivy commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# View all report types available | |
kubectl get crds | grep aquasecurity | |
# Get vulnerability reports | |
kubectl get vulnerabilityreports -A -o table | |
# Get compliance report configs | |
kubectl get clustercompliancereports -o wide -n trivy-system | |
kubectl get clusterconfigauditreports -o wide -n trivy-system | |
kubectl get clusterinfraassessmentreports -o wide -n trivy-system | |
kubectl get clusterrbacassessmentreports -o wide -n trivy-system | |
# Inspect Compliance | |
kubectl get clustercompliancereports cis -o wide -n trivy-system | |
kubectl get clustercompliancereports nsa -o wide -n trivy-system | |
kubectl get clustercompliancereports pss-restricted -o wide -n trivy-system | |
kubectl get clustercompliancereports pss-baseline -o wide -n trivy-system |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment