trivy config

Scan config files

Subcommands

NameDescription
--template, -tOutput template [$TRIVY_TEMPLATE]
--format, -fFormat (table, json, sarif, template) (default: "table") [$TRIVY_FORMAT]
--severity, -sSeverities of vulnerabilities to be displayed (comma separated) (default: "UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL") [$TRIVY_SEVERITY]
--output, -oOutput file name [$TRIVY_OUTPUT]
--exit-codeExit code when vulnerabilities were found (default: 0) [$TRIVY_EXIT_CODE]
--skip-policy-updateSkip updating built-in policies [$TRIVY_SKIP_POLICY_UPDATE]
--resetRemove all caches and database [$TRIVY_RESET]
--clear-cache, -cClear image caches without scanning [$TRIVY_CLEAR_CACHE]
--ignorefileSpecify .trivyignore file (default: ".trivyignore") [$TRIVY_IGNOREFILE]]
--timeoutTimeout (default: 5m0s) [$TRIVY_TIMEOUT]
--skip-filesSpecify the file paths to skip traversal [$TRIVY_SKIP_FILES]
--skip-dirsAllow insecure server connections when using SSL [$TRIVY_INSECURE]
--config-policySpecify paths to the Rego policy files directory, applying config files [$TRIVY_CONFIG_POLICY]
--config-dataSpecify paths from which data for the Rego policies will be recursively loaded [$TRIVY_CONFIG_DATA]
--policy-namespaces, --namespacesRego namespaces (default: "users") [$TRIVY_POLICY_NAMESPACES]
--file-patternsSpecify file patterns [$TRIVY_FILE_PATTERNS
--include-non-failuresEnable more verbose trace output for custom queries [$TRIVY_TRACE]
--traceEnable more verbose trace output for custom queries [$TRIVY_TRACE]