Skip to content

Commit b60f1f3

Browse files
committedNov 18, 2020
docs: Update iac.md to cover --depth-detection
1 parent f99e807 commit b60f1f3

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed
 

‎help/commands-docs/iac-examples.md

+3
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@
77

88
- `Test terraform file`:
99
\$ snyk iac test /path/to/terraform_file.tf
10+
11+
- `Test matching files in a directory`:
12+
\$ snyk iac test /path/to/directory

‎help/commands-docs/iac.md

+8
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ Find security issues in your Infrastructure as Code files.
1717

1818
## OPTIONS
1919

20+
- `--detection-depth`=<DEPTH>:
21+
(only in `test` command)
22+
Indicate the maximum depth of sub-directories to search. <DEPTH> must be a number.
23+
24+
Default: No Limit
25+
Example: `--detection-depth=3`
26+
Will limit search to provided directory (or current directory if no <PATH> provided) plus two levels of subdirectories.
27+
2028
- `--severity-threshold`=low|medium|high:
2129
Only report vulnerabilities of provided level or higher.
2230

0 commit comments

Comments
 (0)
Please sign in to comment.