-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--audit-level not working, regression of #22? #79
Comments
I think this might be that the support of this flag was always naive - it's being passed to npm audit and so it doesn't report stuff on that level. Ping me again if I'm not reporting progress ;) |
Will do, thank you for the rapid reply! 🚀 |
It may be because the report output of https://docs.npmjs.com/cli/commands/npm-audit#description
|
@naugtur per your request, ping this issue! 😄 |
First, thank you for your hard work, it's very appreciated! 🤗
Issue: We're setting up a CI env to automatically run
check-audit
, and we're setting the--audit-level
(or alternatively the envnpm_config_audit_level
), but if we skip any vulnerabilities inresolve-audit
, the exit code still returns a non zero for vulnerabilities below the audit-level. It seems the NPM exit code is being persisted, even though there is an existingaudit-resolve.json
.It's mentioned this is supported in #22 so I'm not sure if I'm doing it wrong, but I've tried multiple times.
Expected Result:
check-audit
should only fail on vulnerabilities equal to or greater than the desired audit level, that do not have a current decisions in the audit-resolve.json file.Repoduce:
The text was updated successfully, but these errors were encountered: