feat(vulnerability): add CWE-ID (#561)

* chore(mod): update dependency

* test(vulnerability): add CweIDs
This commit is contained in:
Teppei Fukuda
2020-07-16 11:07:27 +03:00
committed by GitHub
parent d9fa353a06
commit 4f90b114ea
3 changed files with 5 additions and 3 deletions

View File

@@ -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: {