You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
vulnix currently returns the following exit codes:
2 if a runtime exception occurred, or if all went well and there were non-whitelisted vulnerabilities
1 if the --show-whitelisted option was used and there was at least one whitelisted vulnerability (but no non-whitelisted ones)
0 otherwise
I find this a little confusing, and ended up having to use the (vulnix ... || true) > out.json trick to deal with non-zero exit codes.
A few thoughts:
The exit codes should be documented (in vulnix --help). I'm not sure how to achieve this with the click package we're using.
Runtime exception should yield a distinct exit code from non-failure exit codes.
There should be a flag to tell vulnix to return a non-zero exit code if and only if an exception occured.
Alternatively, vulnix could return non-zero exit codes only in the case of an exception, and we could add an explicit flag to fail if vulnerabilities were found.
What do you think?
The text was updated successfully, but these errors were encountered:
vulnix currently returns the following exit codes:
2
if a runtime exception occurred, or if all went well and there were non-whitelisted vulnerabilities1
if the--show-whitelisted
option was used and there was at least one whitelisted vulnerability (but no non-whitelisted ones)0
otherwiseI find this a little confusing, and ended up having to use the
(vulnix ... || true) > out.json
trick to deal with non-zero exit codes.A few thoughts:
vulnix --help
). I'm not sure how to achieve this with theclick
package we're using.What do you think?
The text was updated successfully, but these errors were encountered: