-
Notifications
You must be signed in to change notification settings - Fork 203
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
Collect Go vulnerabilities from golang/vulndb #749
Comments
There are some issue wrt. Go which is why we did not enable imports from the various datasources that provide Go vulnerability data. ProblemGo is problematic as when we scan there is no universal way to find when a go package names ends and when a subpath stats. Hence creating a PURL is difficult because it may need to access the whole set of know packages to find what is the namespace/name of a package. ContextGo vulnerabilities provide two types of vulnerabilities:
Some other data sources may conflate the package and paths like in Gitlab where we have a package with and without "subpath" for the same vulneraility:
SolutionFor VulnerableCode, let's use the Go way for Go and we will not use path in a PURL namespace/name and not in a subpath. Since at scan time, ScanCode and other tool may have a PURL with full paths instead, we will need to be smart about this in our API and UI code and have some special processing for Go. In the future, we may need to evolve refinements of the PURL spec to always include paths in the name or never include it like today with subpath. |
Note that in the future we will need to store paths and symbols to support reachability #1313 |
For example:
|
See this: #749 (comment) Signed-off-by: Keshav Priyadarshi <[email protected]>
See this: #749 (comment) Signed-off-by: Keshav Priyadarshi <[email protected]>
See this: #749 (comment) Signed-off-by: Keshav Priyadarshi <[email protected]>
See https://github.com/golang/vulndb/blob/master/reports/
This is a follow up from #466
The text was updated successfully, but these errors were encountered: