Severity thresholds for CLI tests

To improve control over your tests, you can use the --severity-threshold option for the snyk test command with one of the supported levels: low|medium|high|critical. With this option, only vulnerabilities of the specified level or higher are reported.

$ snyk test --severity-threshold=medium

Setting --severity-threshold to low has the same effect as running the command without specifying the threshold; all vulnerabilities are reported.

Note: The --severity-threshold option is available with the snyk test, snyk code, snyk container, and snyk iac test commands. See the CLI commands help pages for each command for details.

Last updated

More information

Snyk privacy policy

© 2023 Snyk Limited | All product and company names and logos are trademarks of their respective owners.