-
Notifications
You must be signed in to change notification settings - Fork 43
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
Only return exit code 1 when known vulnerability is detected #86
Comments
Thanks for outlining the intermittent issues with ENOAUDIT. A retry mechanism was introduced in v1.7.0, (hopefully) mitigating this issue (obviously not removing it). Are you getting failures on the current version? Would definitely be open to making this configurable. |
Yes, I'm using 1.7.0. I'm not sure what the server side issues are, but |
@sdann Are you using NPM or yarn as the projet package manager? I noticed that using yarn the retry mechanism seems to work (I often see |
I'm using NPM. The few times that
|
Regarding the ENOAUDIT issue, the reliability of Yarn is independent of the reliability with NPM because Yarn and NPM use different registries. I am open to having a new option It is concerning that NPM can even fail that many tries in a row. I cannot think of a reason why the calls from One intermittent fix is to use the |
Hit this again today, even though NPM said it was fixed:
I'll see if we can use IMO skipping a few audits on a non-vulnerability failure, is more acceptable than breaking the deployment pipeline due to a 3rd party service issue. We do 10s of deployments per day. Breaking that is more impactful than the small chance a new vulnerability was introduced and not detected for a few deployments. |
Hi, I am hoping #89 addresses this issue for NPM in |
Thanks! I've pulled down 2.0.1 and deployed it in our CI pipeline. |
Unfortunately the fix in 2.0.1 isn't working. Just hit this today:
From the debug logs:
|
Thank you for attaching the log! In this case, your error would not have been addressed by At this point, I am entirely stumped by this error. Does it happen every time, or just occasionally? It looks like we will have to merge the |
It only happens occasionally but then it happens repeatedly for a short period of time ~10 minutes. All deployments running within that window hit it. |
Rough stats:
All failures seem to be |
I have merged the |
Thank you! |
I am closing this, will pin this issue for others to see. Thanks :) Will re-open if more issues come up. |
Just in time for a long I got to immediately test 2.1.0:
|
Woohoo 🎉 well, not good that NPM is down, but at least it's gracefully handled. Awesome, thanks @sdann! |
With the NPM audit service having intermittent issues for a week, I think audit-ci should only exit with 1 if a vulnerability is present. It currently exists with 1 due to the NOAUDIT error received from the NPM registry.
Right now my CI builds are failing intermittently and I have to manually disable runs of audit-ci on all my repos. I'd prefer the behavior that environmental issues are ignored and only verified vulnerabilities cause a pipeline error.
Perhaps make this configurable?
The text was updated successfully, but these errors were encountered: