google / osv-scanner

Vulnerability scanner written in Go which uses the data provided by https://osv.dev
https://google.github.io/osv-scanner/
Apache License 2.0
6.21k stars 353 forks source link

Refactor error types #636

Open another-rex opened 11 months ago

another-rex commented 11 months ago

osvscanner is getting a large list of "errors", having an individual error for called/uncalled, license violation, vulnerability...etc.

The error type should be reworked to a structure that contain multiple fields to more easily specify and match against the different results.

another-rex commented 4 months ago

Also See: https://github.com/google/osv-scanner/blob/854cb01164a268fdff27e5358ef946c15c51ab37/pkg/osvscanner/osvscanner.go#L862-L863