Skip to content

Commit

Permalink
Revert "clarifying a dir path is required for custom policies (aquase…
Browse files Browse the repository at this point in the history
…curity#4716)"

This reverts commit 8a1aa44.
  • Loading branch information
nikpivkin committed Jul 10, 2023
1 parent 75127ea commit 34ea41b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions docs/docs/scanner/misconfiguration/custom/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ Once you finish writing custom policies, you can pass the directory where those
trivy conf --policy /path/to/custom_policies --namespaces user /path/to/config_dir
```

!!! Tip
Note: The `--policy` path always needs to refer to a directory. You cannot pass a specific policy file.

As for `--namespaces` option, the detail is described as below.

### File formats
Expand Down
3 changes: 1 addition & 2 deletions docs/docs/scanner/misconfiguration/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,7 @@ trivy conf --policy custom-policy/policy --policy combine/policy --namespaces us
For more details, see [Custom Policies](./custom/index.md).

!!! tip
You also need to specify `--namespaces` option.
Furthermore, the `--policy` path always needs to refer to a directory. You cannot pass a specific policy file.
You also need to specify `--namespaces` option.

### Pass custom data
You can pass directories including your custom data through `--data` option.
Expand Down

0 comments on commit 34ea41b

Please sign in to comment.