Skip to content

Commit

Permalink
Merge pull request #2 from aquasecurity/reshefs_expand_readme
Browse files Browse the repository at this point in the history
added more details to the readme file
  • Loading branch information
subzero112233 authored Jul 13, 2021
2 parents 526b82e + 5dc200a commit a17f3f8
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 a17f3f8

Please sign in to comment.