Skip to content

Commit

Permalink
docs: Update iac.md to cover --depth-detection
Browse files Browse the repository at this point in the history
  • Loading branch information
aron committed Nov 18, 2020
1 parent f99e807 commit b60f1f3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions help/commands-docs/iac-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@

- `Test terraform file`:
\$ snyk iac test /path/to/terraform_file.tf

- `Test matching files in a directory`:
\$ snyk iac test /path/to/directory
8 changes: 8 additions & 0 deletions help/commands-docs/iac.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ Find security issues in your Infrastructure as Code files.

## OPTIONS

- `--detection-depth`=<DEPTH>:
(only in `test` command)
Indicate the maximum depth of sub-directories to search. <DEPTH> must be a number.

Default: No Limit
Example: `--detection-depth=3`
Will limit search to provided directory (or current directory if no <PATH> provided) plus two levels of subdirectories.

- `--severity-threshold`=low|medium|high:
Only report vulnerabilities of provided level or higher.

Expand Down

0 comments on commit b60f1f3

Please sign in to comment.