-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: retain source and type on NVD CVSS scores in grypedb (#109)
Signed-off-by: Weston Steimel <[email protected]>
- Loading branch information
1 parent
d86f7bc
commit d6b059f
Showing
5 changed files
with
43 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -73,6 +73,8 @@ func TestParseAllNVDVulnerabilityEntries(t *testing.T) { | |
), | ||
Vector: "AV:N/AC:L/Au:N/C:P/I:P/A:P", | ||
Version: "2.0", | ||
Source: "[email protected]", | ||
Type: "Primary", | ||
}, | ||
{ | ||
Metrics: grypeDB.NewCvssMetrics( | ||
|
@@ -82,6 +84,8 @@ func TestParseAllNVDVulnerabilityEntries(t *testing.T) { | |
), | ||
Vector: "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", | ||
Version: "3.0", | ||
Source: "[email protected]", | ||
Type: "Primary", | ||
}, | ||
}, | ||
}, | ||
|
@@ -121,6 +125,8 @@ func TestParseAllNVDVulnerabilityEntries(t *testing.T) { | |
), | ||
Vector: "AV:N/AC:M/Au:N/C:P/I:P/A:P", | ||
Version: "2.0", | ||
Source: "[email protected]", | ||
Type: "Primary", | ||
}, | ||
{ | ||
Metrics: grypeDB.NewCvssMetrics( | ||
|
@@ -130,6 +136,8 @@ func TestParseAllNVDVulnerabilityEntries(t *testing.T) { | |
), | ||
Vector: "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", | ||
Version: "3.0", | ||
Source: "[email protected]", | ||
Type: "Primary", | ||
}, | ||
}, | ||
}, | ||
|
@@ -168,6 +176,8 @@ func TestParseAllNVDVulnerabilityEntries(t *testing.T) { | |
), | ||
Vector: "AV:N/AC:L/Au:N/C:P/I:N/A:N", | ||
Version: "2.0", | ||
Source: "[email protected]", | ||
Type: "Primary", | ||
}, | ||
{ | ||
Metrics: grypeDB.NewCvssMetrics( | ||
|
@@ -177,6 +187,8 @@ func TestParseAllNVDVulnerabilityEntries(t *testing.T) { | |
), | ||
Vector: "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N", | ||
Version: "3.0", | ||
Source: "[email protected]", | ||
Type: "Primary", | ||
}, | ||
}, | ||
}, | ||
|
@@ -207,6 +219,8 @@ func TestParseAllNVDVulnerabilityEntries(t *testing.T) { | |
), | ||
Vector: "AV:N/AC:L/Au:N/C:N/I:N/A:P", | ||
Version: "2.0", | ||
Source: "[email protected]", | ||
Type: "Primary", | ||
}, | ||
{ | ||
Metrics: grypeDB.NewCvssMetrics( | ||
|
@@ -216,6 +230,8 @@ func TestParseAllNVDVulnerabilityEntries(t *testing.T) { | |
), | ||
Vector: "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", | ||
Version: "3.0", | ||
Source: "[email protected]", | ||
Type: "Primary", | ||
}, | ||
}, | ||
}, | ||
|
@@ -291,6 +307,8 @@ func TestParseAllNVDVulnerabilityEntries(t *testing.T) { | |
), | ||
Vector: "AV:L/AC:M/Au:N/C:P/I:P/A:P", | ||
Version: "2.0", | ||
Source: "[email protected]", | ||
Type: "Primary", | ||
}, | ||
{ | ||
Metrics: grypeDB.NewCvssMetrics( | ||
|
@@ -300,6 +318,8 @@ func TestParseAllNVDVulnerabilityEntries(t *testing.T) { | |
), | ||
Vector: "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H", | ||
Version: "3.1", | ||
Source: "[email protected]", | ||
Type: "Primary", | ||
}, | ||
}, | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters