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
Return 1 if there are any findings (license or vulns).
Return 128 if no packages are found.
As part of this we can delete the new public error types added here also.
For govulncheck / call analysis, we should also return 0 if any findings are uncalled (this matches govulncheck CLI behaviour). This may end up being a per-ecosystem default as we add support for more languages that are less robust when it comes to reachability analysis.
The text was updated successfully, but these errors were encountered:
…677)
Fixes#676
> - Return 0 if there are no findings or errors.
> - Return 1 if there are any findings (license or vulns).
> - Return 128 if no packages are found.
The current (unreleased) return code setup is a little too complicated (context).
osv-scanner/cmd/osv-scanner/main.go
Line 206 in 8c5634d
I propose we simplify all of this to just:
As part of this we can delete the new public error types added here also.
For govulncheck / call analysis, we should also return 0 if any findings are uncalled (this matches
govulncheck
CLI behaviour). This may end up being a per-ecosystem default as we add support for more languages that are less robust when it comes to reachability analysis.The text was updated successfully, but these errors were encountered: