Skip to content

Commit

Permalink
refactor: add warning if severity not from vendor (or NVD or GH) is used
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriyLewen committed May 20, 2024
1 parent ff32deb commit 4e26d52
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/vulnerability/vulnerability.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ func (c Client) getVendorSeverity(vulnID string, vuln *dbTypes.Vulnerability, so
return dbTypes.SeverityUnknown.String(), ""
}

log.Warn("Vendor and NVD don't have severity level. Severity from another vendor is used (see `VendorSeverity` in `json` format).", log.String("CVE", vulnID))
return vuln.Severity, ""
}

Expand Down

0 comments on commit 4e26d52

Please sign in to comment.