diff --git a/README.md b/README.md index fdc7ff82..8a6d2f6a 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,27 @@ Examples: ## Usage Trivy's options need to be passed after `--`. +Trivy receives a target directory containing IaC files +Set Aqua plugin as Trivy's current default plugin by exporting an environment variable ``` -# Scan an IaC file export TRIVY_RUN_AS_PLUGIN=aqua +``` + + +### Scan an IaC target +``` trivy iac --aqua-key --aqua-secret ``` + +### Scan an IaC target and tag the scan +``` + trivy iac --aqua-key --aqua-secret --tags key1:value1 --tags key2:value2 +``` + +### Scan an IaC target and report only specific severities +``` + trivy iac --aqua-key --aqua-secret --severities CRITICAL,HIGH +``` + +