Skip to content

Instantly share code, notes, and snippets.

@adriantorrie
Created October 18, 2024 01:16
Show Gist options
  • Save adriantorrie/be1afa3fa2c37e7995dfa84f8168b8ce to your computer and use it in GitHub Desktop.
Save adriantorrie/be1afa3fa2c37e7995dfa84f8168b8ce to your computer and use it in GitHub Desktop.
Trivy commands
# 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