forked from aquasecurity/trivy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: restructure scanners (aquasecurity#3977)
Co-authored-by: DmitriyLewen <dmitriy.lewen@smartforce.io>
- Loading branch information
1 parent
b19b56c
commit 57bb77c
Showing
142 changed files
with
1,743 additions
and
5,298 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
196 changes: 111 additions & 85 deletions
196
docs/docs/vulnerability/examples/filter.md → docs/docs/configuration/filtering.md
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Configuration | ||
Trivy can be configured using the following ways. Each item takes precedence over the item below it: | ||
|
||
- CLI flags | ||
- Environment variables | ||
- Configuration file | ||
|
||
## CLI Flags | ||
You can view the list of available flags using the `--help` option. | ||
For more details, please refer to [the CLI reference](../references/configuration/cli/trivy.md). | ||
|
||
## Environment Variables | ||
Trivy can be customized by environment variables. | ||
The environment variable key is the flag name converted by the following procedure. | ||
|
||
- Add `TRIVY_` prefix | ||
- Make it all uppercase | ||
- Replace `-` with `_` | ||
|
||
For example, | ||
|
||
- `--debug` => `TRIVY_DEBUG` | ||
- `--cache-dir` => `TRIVY_CACHE_DIR` | ||
|
||
``` | ||
$ TRIVY_DEBUG=true TRIVY_SEVERITY=CRITICAL trivy image alpine:3.15 | ||
``` | ||
|
||
## Configuration File | ||
By default, Trivy reads the `trivy.yaml` file. | ||
For more details, please refer to [the page](../references/configuration/config-file.md). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.