From 5dc200a36eab9d03c8237767ba6ef0490f2baf94 Mon Sep 17 00:00:00 2001 From: Reshef Sharvit Date: Tue, 13 Jul 2021 08:42:29 +0300 Subject: [PATCH] added more details to the readme file --- README.md | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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 +``` + +