Trivy can be configured using the following ways. Each item takes precedence over the item below it:
- CLI flags
- Environment variables
- Configuration file
You can view the list of available flags using the
For more details, please refer to the CLI reference.
Trivy can be customized by environment variables. The environment variable key is the flag name converted by the following procedure.
- Make it all uppercase
$ TRIVY_DEBUG=true TRIVY_SEVERITY=CRITICAL trivy image alpine:3.15
By default, Trivy reads the
For more details, please refer to the page.