mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-22 23:26:39 -08:00
feat(vulnerability): add CWE-ID (#561)
* chore(mod): update dependency * test(vulnerability): add CweIDs
This commit is contained in:
@@ -157,6 +157,7 @@ func TestClient_FillInfo(t *testing.T) {
|
||||
Title: "dos",
|
||||
Description: "dos vulnerability",
|
||||
Severity: dbTypes.SeverityMedium.String(),
|
||||
CweIDs: []string{"CWE-311"},
|
||||
VendorSeverity: dbTypes.VendorSeverity{
|
||||
vulnerability.RedHat: dbTypes.SeverityLow, // CentOS uses RedHat
|
||||
},
|
||||
@@ -192,6 +193,7 @@ func TestClient_FillInfo(t *testing.T) {
|
||||
Title: "dos",
|
||||
Description: "dos vulnerability",
|
||||
Severity: dbTypes.SeverityLow.String(),
|
||||
CweIDs: []string{"CWE-311"},
|
||||
References: []string{"http://example.com"},
|
||||
CVSS: map[string]dbTypes.CVSS{
|
||||
vulnerability.Nvd: {
|
||||
|
||||
Reference in New Issue
Block a user