Skip to content

Conversation

@majiayu000
Copy link
Contributor

Summary

  • Exit code now depends on whether vulnerabilities meet the --level threshold
  • Matches npm's audit exit code behavior as documented here
  • Added tests to verify the behavior

Closes #31702

majiayu000 and others added 2 commits December 26, 2025 12:04
The exit code now depends on whether there are vulnerabilities at or
above the specified severity level, matching npm's behavior.

- Exit 0 when no vulnerabilities meet the threshold
- Exit 1 only when vulnerabilities at or above --level exist

Closes denoland#31702

Signed-off-by: majiayu000 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve the deno audit exit code

2 participants