Skip to content

Commit

Permalink
added more details to the readme file
Browse files Browse the repository at this point in the history
  • Loading branch information
Reshef Sharvit committed Jul 13, 2021
1 parent 526b82e commit 5dc200a
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <key> --aqua-secret <secret> <target>
```

### Scan an IaC target and tag the scan
```
trivy iac --aqua-key <key> --aqua-secret <secret> --tags key1:value1 --tags key2:value2 <target>
```

### Scan an IaC target and report only specific severities
```
trivy iac --aqua-key <key> --aqua-secret <secret> --severities CRITICAL,HIGH <target>
```


0 comments on commit 5dc200a

Please sign in to comment.