mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-21 23:00:42 -08:00
feat(os-pkg): add data sources (#1636)
This commit is contained in:
@@ -238,6 +238,10 @@ func TestConvertToRpcVulns(t *testing.T) {
|
||||
DiffID: "sha256:b2a1a2d80bf0c747a4f6b0ca6af5eef23f043fcdb1ed4f3a3e750aef2dc68079",
|
||||
},
|
||||
PrimaryURL: "https://avd.aquasec.com/nvd/CVE-2019-0001",
|
||||
DataSource: &dbTypes.DataSource{
|
||||
Name: "GitHub Security Advisory Maven",
|
||||
URL: "https://github.com/advisories?query=type%3Areviewed+ecosystem%3Amaven",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -266,6 +270,10 @@ func TestConvertToRpcVulns(t *testing.T) {
|
||||
PrimaryUrl: "https://avd.aquasec.com/nvd/CVE-2019-0001",
|
||||
PublishedDate: timestamppb.New(fixedPublishedDate),
|
||||
LastModifiedDate: timestamppb.New(fixedLastModifiedDate),
|
||||
DataSource: &common.DataSource{
|
||||
Name: "GitHub Security Advisory Maven",
|
||||
Url: "https://github.com/advisories?query=type%3Areviewed+ecosystem%3Amaven",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -288,6 +296,10 @@ func TestConvertToRpcVulns(t *testing.T) {
|
||||
Digest: "sha256:154ad0735c360b212b167f424d33a62305770a1fcfb6363882f5c436cfbd9812",
|
||||
DiffID: "sha256:b2a1a2d80bf0c747a4f6b0ca6af5eef23f043fcdb1ed4f3a3e750aef2dc68079",
|
||||
},
|
||||
DataSource: &dbTypes.DataSource{
|
||||
Name: "GitHub Security Advisory Maven",
|
||||
URL: "https://github.com/advisories?query=type%3Areviewed+ecosystem%3Amaven",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -306,6 +318,10 @@ func TestConvertToRpcVulns(t *testing.T) {
|
||||
Digest: "sha256:154ad0735c360b212b167f424d33a62305770a1fcfb6363882f5c436cfbd9812",
|
||||
DiffId: "sha256:b2a1a2d80bf0c747a4f6b0ca6af5eef23f043fcdb1ed4f3a3e750aef2dc68079",
|
||||
},
|
||||
DataSource: &common.DataSource{
|
||||
Name: "GitHub Security Advisory Maven",
|
||||
Url: "https://github.com/advisories?query=type%3Areviewed+ecosystem%3Amaven",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
@@ -363,6 +379,10 @@ func TestConvertFromRPCResults(t *testing.T) {
|
||||
PrimaryUrl: "https://avd.aquasec.com/nvd/CVE-2019-0001",
|
||||
PublishedDate: timestamppb.New(fixedPublishedDate),
|
||||
LastModifiedDate: timestamppb.New(fixedLastModifiedDate),
|
||||
DataSource: &common.DataSource{
|
||||
Name: "GitHub Security Advisory Maven",
|
||||
Url: "https://github.com/advisories?query=type%3Areviewed+ecosystem%3Amaven",
|
||||
},
|
||||
},
|
||||
},
|
||||
}},
|
||||
@@ -401,6 +421,10 @@ func TestConvertFromRPCResults(t *testing.T) {
|
||||
PublishedDate: &fixedPublishedDate,
|
||||
LastModifiedDate: &fixedLastModifiedDate,
|
||||
},
|
||||
DataSource: &dbTypes.DataSource{
|
||||
Name: "GitHub Security Advisory Maven",
|
||||
URL: "https://github.com/advisories?query=type%3Areviewed+ecosystem%3Amaven",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user