mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-23 15:37:50 -08:00
remove govulndb (#4783)
This commit is contained in:
@@ -98,8 +98,7 @@ func (c Client) getVendorSeverity(vulnID string, vuln *dbTypes.Vulnerability, so
|
||||
}
|
||||
|
||||
// use severity from GitHub for all GHSA-xxx vulnerabilities
|
||||
// govuln doesn't have severity. Use severity from GitHub(for CVE-xxx vulns)
|
||||
if strings.HasPrefix(vulnID, "GHSA-") || source == vulnerability.GoVulnDB {
|
||||
if strings.HasPrefix(vulnID, "GHSA-") {
|
||||
if vs, ok := vuln.VendorSeverity[vulnerability.GHSA]; ok {
|
||||
return vs.String(), vulnerability.GHSA
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user