forked from anchore/grype
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(outputs): allow to set multiple outputs (anchore#648)
review Signed-off-by: Olivier Boudet <[email protected]>
- Loading branch information
1 parent
645def2
commit 21e25b9
Showing
10 changed files
with
278 additions
and
82 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
153 changes: 153 additions & 0 deletions
153
grype/presenter/json/test-fixtures/snapshot/TestJsonPresentWithOutputFile.golden
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 |
---|---|---|
@@ -0,0 +1,153 @@ | ||
{ | ||
"matches": [ | ||
{ | ||
"vulnerability": { | ||
"id": "CVE-1999-0001", | ||
"dataSource": "", | ||
"severity": "Low", | ||
"urls": [], | ||
"description": "1999-01 description", | ||
"cvss": [ | ||
{ | ||
"version": "3.0", | ||
"vector": "another vector", | ||
"metrics": { | ||
"baseScore": 4 | ||
}, | ||
"vendorMetadata": {} | ||
} | ||
], | ||
"fix": { | ||
"versions": [ | ||
"the-next-version" | ||
], | ||
"state": "fixed" | ||
}, | ||
"advisories": [] | ||
}, | ||
"relatedVulnerabilities": [], | ||
"matchDetails": [ | ||
{ | ||
"type": "exact-direct-match", | ||
"matcher": "dpkg-matcher", | ||
"searchedBy": { | ||
"distro": { | ||
"type": "ubuntu", | ||
"version": "20.04" | ||
} | ||
}, | ||
"found": { | ||
"constraint": ">= 20" | ||
} | ||
} | ||
], | ||
"artifact": { | ||
"id": "96699b00fe3004b4", | ||
"name": "package-1", | ||
"version": "1.1.1", | ||
"type": "rpm", | ||
"locations": [ | ||
{ | ||
"path": "/foo/bar/somefile-1.txt" | ||
} | ||
], | ||
"language": "", | ||
"licenses": [], | ||
"cpes": [ | ||
"cpe:2.3:a:anchore:engine:0.9.2:*:*:python:*:*:*:*" | ||
], | ||
"purl": "", | ||
"upstreams": [ | ||
{ | ||
"name": "nothing", | ||
"version": "3.2" | ||
} | ||
], | ||
"metadataType": "RpmMetadata", | ||
"metadata": { | ||
"epoch": 2, | ||
"modularityLabel": "" | ||
} | ||
} | ||
}, | ||
{ | ||
"vulnerability": { | ||
"id": "CVE-1999-0002", | ||
"dataSource": "", | ||
"severity": "Critical", | ||
"urls": [], | ||
"description": "1999-02 description", | ||
"cvss": [ | ||
{ | ||
"version": "2.0", | ||
"vector": "vector", | ||
"metrics": { | ||
"baseScore": 1, | ||
"exploitabilityScore": 2, | ||
"impactScore": 3 | ||
}, | ||
"vendorMetadata": { | ||
"BaseSeverity": "Low", | ||
"Status": "verified" | ||
} | ||
} | ||
], | ||
"fix": { | ||
"versions": [], | ||
"state": "" | ||
}, | ||
"advisories": [] | ||
}, | ||
"relatedVulnerabilities": [], | ||
"matchDetails": [ | ||
{ | ||
"type": "exact-indirect-match", | ||
"matcher": "dpkg-matcher", | ||
"searchedBy": { | ||
"cpe": "somecpe" | ||
}, | ||
"found": { | ||
"constraint": "somecpe" | ||
} | ||
} | ||
], | ||
"artifact": { | ||
"id": "b4013a965511376c", | ||
"name": "package-2", | ||
"version": "2.2.2", | ||
"type": "deb", | ||
"locations": [ | ||
{ | ||
"path": "/foo/bar/somefile-2.txt" | ||
} | ||
], | ||
"language": "", | ||
"licenses": [ | ||
"MIT", | ||
"Apache-2.0" | ||
], | ||
"cpes": [ | ||
"cpe:2.3:a:anchore:engine:2.2.2:*:*:python:*:*:*:*" | ||
], | ||
"purl": "", | ||
"upstreams": [] | ||
} | ||
} | ||
], | ||
"source": { | ||
"type": "directory", | ||
"target": "/some/path" | ||
}, | ||
"distro": { | ||
"name": "centos", | ||
"version": "8.0", | ||
"idLike": [ | ||
"centos" | ||
] | ||
}, | ||
"descriptor": { | ||
"name": "grype", | ||
"version": "[not provided]", | ||
"timestamp":"" | ||
} | ||
} |
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
Oops, something went wrong.