-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: pretty-print JSON in snapshots (#647)
* chore: pretty-print JSON in snapshots Otherwise, it can be very hard to review a PR that updates a snapshot. Signed-off-by: Will Murphy <[email protected]> * chore: track script, use orjson and indent 2 orjson is the preferred JSON package in this project, but only supports indent 2. Track the script that formats the JSON snapshots, and switch to indenting at 2 spaces to permit using orjson. Signed-off-by: Will Murphy <[email protected]> * chore: linter Signed-off-by: Will Murphy <[email protected]> * chore: track script as make target, not pyproject target Since this script is not part of Vunnel, it should not be declared in the pyproject.toml tool.poetry.scripts block. Signed-off-by: Will Murphy <[email protected]> --------- Signed-off-by: Will Murphy <[email protected]>
- Loading branch information
1 parent
992c719
commit db736b8
Showing
465 changed files
with
17,123 additions
and
462 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
Empty file.
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,35 @@ | ||
import os | ||
|
||
import orjson | ||
|
||
root_directory = "tests/unit/providers" | ||
|
||
|
||
def pretty_print_json_file(file_path): | ||
try: | ||
with open(file_path, "rb") as file: | ||
existing = file.read() | ||
data = orjson.loads(existing) | ||
|
||
formatted = orjson.dumps( | ||
data, | ||
option=orjson.OPT_INDENT_2 | orjson.OPT_SORT_KEYS | orjson.OPT_APPEND_NEWLINE) | ||
if formatted == existing: | ||
return | ||
|
||
with open(file_path, "wb") as file: | ||
file.write(formatted) | ||
print(f"Formatted: {file_path}") | ||
except (OSError, orjson.JSONDecodeError) as e: | ||
print(f"Error processing {file_path}: {e}") | ||
|
||
|
||
def main(): | ||
for dirpath, _, filenames in os.walk(root_directory): | ||
if "test-fixtures/snapshots" in dirpath: | ||
for filename in filenames: | ||
if filename.endswith(".json"): | ||
file_path = os.path.join(dirpath, filename) | ||
pretty_print_json_file(file_path) | ||
|
||
print("JSON formatting complete.") |
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
24 changes: 23 additions & 1 deletion
24
tests/unit/providers/alpine/test-fixtures/snapshots/3.15/cve-2018-1071.json
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 |
---|---|---|
@@ -1 +1,23 @@ | ||
{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"3.15/cve-2018-1071","item":{"Vulnerability":{"Severity":"Unknown","NamespaceName":"alpine:3.15","FixedIn":[{"VersionFormat":"apk","NamespaceName":"alpine:3.15","Name":"zsh","Version":"5.4.2-r1"}],"Link":"https://www.cve.org/CVERecord?id=CVE-2018-1071","Description":"","Metadata":{},"Name":"CVE-2018-1071","CVSS":[]}}} | ||
{ | ||
"identifier": "3.15/cve-2018-1071", | ||
"item": { | ||
"Vulnerability": { | ||
"CVSS": [], | ||
"Description": "", | ||
"FixedIn": [ | ||
{ | ||
"Name": "zsh", | ||
"NamespaceName": "alpine:3.15", | ||
"Version": "5.4.2-r1", | ||
"VersionFormat": "apk" | ||
} | ||
], | ||
"Link": "https://www.cve.org/CVERecord?id=CVE-2018-1071", | ||
"Metadata": {}, | ||
"Name": "CVE-2018-1071", | ||
"NamespaceName": "alpine:3.15", | ||
"Severity": "Unknown" | ||
} | ||
}, | ||
"schema": "https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json" | ||
} |
24 changes: 23 additions & 1 deletion
24
tests/unit/providers/alpine/test-fixtures/snapshots/3.15/cve-2018-1083.json
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 |
---|---|---|
@@ -1 +1,23 @@ | ||
{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"3.15/cve-2018-1083","item":{"Vulnerability":{"Severity":"Unknown","NamespaceName":"alpine:3.15","FixedIn":[{"VersionFormat":"apk","NamespaceName":"alpine:3.15","Name":"zsh","Version":"5.4.2-r1"}],"Link":"https://www.cve.org/CVERecord?id=CVE-2018-1083","Description":"","Metadata":{},"Name":"CVE-2018-1083","CVSS":[]}}} | ||
{ | ||
"identifier": "3.15/cve-2018-1083", | ||
"item": { | ||
"Vulnerability": { | ||
"CVSS": [], | ||
"Description": "", | ||
"FixedIn": [ | ||
{ | ||
"Name": "zsh", | ||
"NamespaceName": "alpine:3.15", | ||
"Version": "5.4.2-r1", | ||
"VersionFormat": "apk" | ||
} | ||
], | ||
"Link": "https://www.cve.org/CVERecord?id=CVE-2018-1083", | ||
"Metadata": {}, | ||
"Name": "CVE-2018-1083", | ||
"NamespaceName": "alpine:3.15", | ||
"Severity": "Unknown" | ||
} | ||
}, | ||
"schema": "https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json" | ||
} |
24 changes: 23 additions & 1 deletion
24
tests/unit/providers/alpine/test-fixtures/snapshots/3.15/cve-2018-25032.json
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 |
---|---|---|
@@ -1 +1,23 @@ | ||
{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"3.15/cve-2018-25032","item":{"Vulnerability":{"Severity":"Unknown","NamespaceName":"alpine:3.15","FixedIn":[{"VersionFormat":"apk","NamespaceName":"alpine:3.15","Name":"zlib","Version":"1.2.12-r0"}],"Link":"https://www.cve.org/CVERecord?id=CVE-2018-25032","Description":"","Metadata":{},"Name":"CVE-2018-25032","CVSS":[]}}} | ||
{ | ||
"identifier": "3.15/cve-2018-25032", | ||
"item": { | ||
"Vulnerability": { | ||
"CVSS": [], | ||
"Description": "", | ||
"FixedIn": [ | ||
{ | ||
"Name": "zlib", | ||
"NamespaceName": "alpine:3.15", | ||
"Version": "1.2.12-r0", | ||
"VersionFormat": "apk" | ||
} | ||
], | ||
"Link": "https://www.cve.org/CVERecord?id=CVE-2018-25032", | ||
"Metadata": {}, | ||
"Name": "CVE-2018-25032", | ||
"NamespaceName": "alpine:3.15", | ||
"Severity": "Unknown" | ||
} | ||
}, | ||
"schema": "https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json" | ||
} |
24 changes: 23 additions & 1 deletion
24
tests/unit/providers/alpine/test-fixtures/snapshots/3.15/cve-2019-11922.json
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 |
---|---|---|
@@ -1 +1,23 @@ | ||
{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"3.15/cve-2019-11922","item":{"Vulnerability":{"Severity":"Unknown","NamespaceName":"alpine:3.15","FixedIn":[{"VersionFormat":"apk","NamespaceName":"alpine:3.15","Name":"zstd","Version":"1.3.8-r0"}],"Link":"https://www.cve.org/CVERecord?id=CVE-2019-11922","Description":"","Metadata":{},"Name":"CVE-2019-11922","CVSS":[]}}} | ||
{ | ||
"identifier": "3.15/cve-2019-11922", | ||
"item": { | ||
"Vulnerability": { | ||
"CVSS": [], | ||
"Description": "", | ||
"FixedIn": [ | ||
{ | ||
"Name": "zstd", | ||
"NamespaceName": "alpine:3.15", | ||
"Version": "1.3.8-r0", | ||
"VersionFormat": "apk" | ||
} | ||
], | ||
"Link": "https://www.cve.org/CVERecord?id=CVE-2019-11922", | ||
"Metadata": {}, | ||
"Name": "CVE-2019-11922", | ||
"NamespaceName": "alpine:3.15", | ||
"Severity": "Unknown" | ||
} | ||
}, | ||
"schema": "https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json" | ||
} |
24 changes: 23 additions & 1 deletion
24
tests/unit/providers/alpine/test-fixtures/snapshots/3.15/cve-2019-13132.json
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 |
---|---|---|
@@ -1 +1,23 @@ | ||
{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"3.15/cve-2019-13132","item":{"Vulnerability":{"Severity":"Unknown","NamespaceName":"alpine:3.15","FixedIn":[{"VersionFormat":"apk","NamespaceName":"alpine:3.15","Name":"zeromq","Version":"4.3.2-r0"}],"Link":"https://www.cve.org/CVERecord?id=CVE-2019-13132","Description":"","Metadata":{},"Name":"CVE-2019-13132","CVSS":[]}}} | ||
{ | ||
"identifier": "3.15/cve-2019-13132", | ||
"item": { | ||
"Vulnerability": { | ||
"CVSS": [], | ||
"Description": "", | ||
"FixedIn": [ | ||
{ | ||
"Name": "zeromq", | ||
"NamespaceName": "alpine:3.15", | ||
"Version": "4.3.2-r0", | ||
"VersionFormat": "apk" | ||
} | ||
], | ||
"Link": "https://www.cve.org/CVERecord?id=CVE-2019-13132", | ||
"Metadata": {}, | ||
"Name": "CVE-2019-13132", | ||
"NamespaceName": "alpine:3.15", | ||
"Severity": "Unknown" | ||
} | ||
}, | ||
"schema": "https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json" | ||
} |
24 changes: 23 additions & 1 deletion
24
tests/unit/providers/alpine/test-fixtures/snapshots/3.15/cve-2019-20044.json
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 |
---|---|---|
@@ -1 +1,23 @@ | ||
{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"3.15/cve-2019-20044","item":{"Vulnerability":{"Severity":"Unknown","NamespaceName":"alpine:3.15","FixedIn":[{"VersionFormat":"apk","NamespaceName":"alpine:3.15","Name":"zsh","Version":"5.8-r0"}],"Link":"https://www.cve.org/CVERecord?id=CVE-2019-20044","Description":"","Metadata":{},"Name":"CVE-2019-20044","CVSS":[]}}} | ||
{ | ||
"identifier": "3.15/cve-2019-20044", | ||
"item": { | ||
"Vulnerability": { | ||
"CVSS": [], | ||
"Description": "", | ||
"FixedIn": [ | ||
{ | ||
"Name": "zsh", | ||
"NamespaceName": "alpine:3.15", | ||
"Version": "5.8-r0", | ||
"VersionFormat": "apk" | ||
} | ||
], | ||
"Link": "https://www.cve.org/CVERecord?id=CVE-2019-20044", | ||
"Metadata": {}, | ||
"Name": "CVE-2019-20044", | ||
"NamespaceName": "alpine:3.15", | ||
"Severity": "Unknown" | ||
} | ||
}, | ||
"schema": "https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json" | ||
} |
24 changes: 23 additions & 1 deletion
24
tests/unit/providers/alpine/test-fixtures/snapshots/3.15/cve-2019-6250.json
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 |
---|---|---|
@@ -1 +1,23 @@ | ||
{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"3.15/cve-2019-6250","item":{"Vulnerability":{"Severity":"Unknown","NamespaceName":"alpine:3.15","FixedIn":[{"VersionFormat":"apk","NamespaceName":"alpine:3.15","Name":"zeromq","Version":"4.3.1-r0"}],"Link":"https://www.cve.org/CVERecord?id=CVE-2019-6250","Description":"","Metadata":{},"Name":"CVE-2019-6250","CVSS":[]}}} | ||
{ | ||
"identifier": "3.15/cve-2019-6250", | ||
"item": { | ||
"Vulnerability": { | ||
"CVSS": [], | ||
"Description": "", | ||
"FixedIn": [ | ||
{ | ||
"Name": "zeromq", | ||
"NamespaceName": "alpine:3.15", | ||
"Version": "4.3.1-r0", | ||
"VersionFormat": "apk" | ||
} | ||
], | ||
"Link": "https://www.cve.org/CVERecord?id=CVE-2019-6250", | ||
"Metadata": {}, | ||
"Name": "CVE-2019-6250", | ||
"NamespaceName": "alpine:3.15", | ||
"Severity": "Unknown" | ||
} | ||
}, | ||
"schema": "https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json" | ||
} |
24 changes: 23 additions & 1 deletion
24
tests/unit/providers/alpine/test-fixtures/snapshots/3.15/cve-2019-9210.json
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 |
---|---|---|
@@ -1 +1,23 @@ | ||
{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"3.15/cve-2019-9210","item":{"Vulnerability":{"Severity":"Unknown","NamespaceName":"alpine:3.15","FixedIn":[{"VersionFormat":"apk","NamespaceName":"alpine:3.15","Name":"advancecomp","Version":"2.1-r2"}],"Link":"https://www.cve.org/CVERecord?id=CVE-2019-9210","Description":"","Metadata":{},"Name":"CVE-2019-9210","CVSS":[]}}} | ||
{ | ||
"identifier": "3.15/cve-2019-9210", | ||
"item": { | ||
"Vulnerability": { | ||
"CVSS": [], | ||
"Description": "", | ||
"FixedIn": [ | ||
{ | ||
"Name": "advancecomp", | ||
"NamespaceName": "alpine:3.15", | ||
"Version": "2.1-r2", | ||
"VersionFormat": "apk" | ||
} | ||
], | ||
"Link": "https://www.cve.org/CVERecord?id=CVE-2019-9210", | ||
"Metadata": {}, | ||
"Name": "CVE-2019-9210", | ||
"NamespaceName": "alpine:3.15", | ||
"Severity": "Unknown" | ||
} | ||
}, | ||
"schema": "https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json" | ||
} |
24 changes: 23 additions & 1 deletion
24
tests/unit/providers/alpine/test-fixtures/snapshots/3.15/cve-2020-14929.json
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 |
---|---|---|
@@ -1 +1,23 @@ | ||
{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"3.15/cve-2020-14929","item":{"Vulnerability":{"Severity":"Unknown","NamespaceName":"alpine:3.15","FixedIn":[{"VersionFormat":"apk","NamespaceName":"alpine:3.15","Name":"alpine","Version":"2.23-r0"}],"Link":"https://www.cve.org/CVERecord?id=CVE-2020-14929","Description":"","Metadata":{},"Name":"CVE-2020-14929","CVSS":[]}}} | ||
{ | ||
"identifier": "3.15/cve-2020-14929", | ||
"item": { | ||
"Vulnerability": { | ||
"CVSS": [], | ||
"Description": "", | ||
"FixedIn": [ | ||
{ | ||
"Name": "alpine", | ||
"NamespaceName": "alpine:3.15", | ||
"Version": "2.23-r0", | ||
"VersionFormat": "apk" | ||
} | ||
], | ||
"Link": "https://www.cve.org/CVERecord?id=CVE-2020-14929", | ||
"Metadata": {}, | ||
"Name": "CVE-2020-14929", | ||
"NamespaceName": "alpine:3.15", | ||
"Severity": "Unknown" | ||
} | ||
}, | ||
"schema": "https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json" | ||
} |
24 changes: 23 additions & 1 deletion
24
tests/unit/providers/alpine/test-fixtures/snapshots/3.15/cve-2020-15166.json
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 |
---|---|---|
@@ -1 +1,23 @@ | ||
{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"3.15/cve-2020-15166","item":{"Vulnerability":{"Severity":"Unknown","NamespaceName":"alpine:3.15","FixedIn":[{"VersionFormat":"apk","NamespaceName":"alpine:3.15","Name":"zeromq","Version":"4.3.3-r0"}],"Link":"https://www.cve.org/CVERecord?id=CVE-2020-15166","Description":"","Metadata":{},"Name":"CVE-2020-15166","CVSS":[]}}} | ||
{ | ||
"identifier": "3.15/cve-2020-15166", | ||
"item": { | ||
"Vulnerability": { | ||
"CVSS": [], | ||
"Description": "", | ||
"FixedIn": [ | ||
{ | ||
"Name": "zeromq", | ||
"NamespaceName": "alpine:3.15", | ||
"Version": "4.3.3-r0", | ||
"VersionFormat": "apk" | ||
} | ||
], | ||
"Link": "https://www.cve.org/CVERecord?id=CVE-2020-15166", | ||
"Metadata": {}, | ||
"Name": "CVE-2020-15166", | ||
"NamespaceName": "alpine:3.15", | ||
"Severity": "Unknown" | ||
} | ||
}, | ||
"schema": "https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json" | ||
} |
24 changes: 23 additions & 1 deletion
24
tests/unit/providers/alpine/test-fixtures/snapshots/3.15/cve-2021-24031.json
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 |
---|---|---|
@@ -1 +1,23 @@ | ||
{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"3.15/cve-2021-24031","item":{"Vulnerability":{"Severity":"Unknown","NamespaceName":"alpine:3.15","FixedIn":[{"VersionFormat":"apk","NamespaceName":"alpine:3.15","Name":"zstd","Version":"1.4.1-r0"}],"Link":"https://www.cve.org/CVERecord?id=CVE-2021-24031","Description":"","Metadata":{},"Name":"CVE-2021-24031","CVSS":[]}}} | ||
{ | ||
"identifier": "3.15/cve-2021-24031", | ||
"item": { | ||
"Vulnerability": { | ||
"CVSS": [], | ||
"Description": "", | ||
"FixedIn": [ | ||
{ | ||
"Name": "zstd", | ||
"NamespaceName": "alpine:3.15", | ||
"Version": "1.4.1-r0", | ||
"VersionFormat": "apk" | ||
} | ||
], | ||
"Link": "https://www.cve.org/CVERecord?id=CVE-2021-24031", | ||
"Metadata": {}, | ||
"Name": "CVE-2021-24031", | ||
"NamespaceName": "alpine:3.15", | ||
"Severity": "Unknown" | ||
} | ||
}, | ||
"schema": "https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json" | ||
} |
24 changes: 23 additions & 1 deletion
24
tests/unit/providers/alpine/test-fixtures/snapshots/3.15/cve-2021-24032.json
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 |
---|---|---|
@@ -1 +1,23 @@ | ||
{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"3.15/cve-2021-24032","item":{"Vulnerability":{"Severity":"Unknown","NamespaceName":"alpine:3.15","FixedIn":[{"VersionFormat":"apk","NamespaceName":"alpine:3.15","Name":"zstd","Version":"1.4.9-r0"}],"Link":"https://www.cve.org/CVERecord?id=CVE-2021-24032","Description":"","Metadata":{},"Name":"CVE-2021-24032","CVSS":[]}}} | ||
{ | ||
"identifier": "3.15/cve-2021-24032", | ||
"item": { | ||
"Vulnerability": { | ||
"CVSS": [], | ||
"Description": "", | ||
"FixedIn": [ | ||
{ | ||
"Name": "zstd", | ||
"NamespaceName": "alpine:3.15", | ||
"Version": "1.4.9-r0", | ||
"VersionFormat": "apk" | ||
} | ||
], | ||
"Link": "https://www.cve.org/CVERecord?id=CVE-2021-24032", | ||
"Metadata": {}, | ||
"Name": "CVE-2021-24032", | ||
"NamespaceName": "alpine:3.15", | ||
"Severity": "Unknown" | ||
} | ||
}, | ||
"schema": "https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json" | ||
} |
24 changes: 23 additions & 1 deletion
24
tests/unit/providers/alpine/test-fixtures/snapshots/3.15/cve-2021-38370.json
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 |
---|---|---|
@@ -1 +1,23 @@ | ||
{"schema":"https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json","identifier":"3.15/cve-2021-38370","item":{"Vulnerability":{"Severity":"Unknown","NamespaceName":"alpine:3.15","FixedIn":[{"VersionFormat":"apk","NamespaceName":"alpine:3.15","Name":"alpine","Version":"2.25-r0"}],"Link":"https://www.cve.org/CVERecord?id=CVE-2021-38370","Description":"","Metadata":{},"Name":"CVE-2021-38370","CVSS":[]}}} | ||
{ | ||
"identifier": "3.15/cve-2021-38370", | ||
"item": { | ||
"Vulnerability": { | ||
"CVSS": [], | ||
"Description": "", | ||
"FixedIn": [ | ||
{ | ||
"Name": "alpine", | ||
"NamespaceName": "alpine:3.15", | ||
"Version": "2.25-r0", | ||
"VersionFormat": "apk" | ||
} | ||
], | ||
"Link": "https://www.cve.org/CVERecord?id=CVE-2021-38370", | ||
"Metadata": {}, | ||
"Name": "CVE-2021-38370", | ||
"NamespaceName": "alpine:3.15", | ||
"Severity": "Unknown" | ||
} | ||
}, | ||
"schema": "https://raw.githubusercontent.com/anchore/vunnel/main/schema/vulnerability/os/schema-1.0.0.json" | ||
} |
Oops, something went wrong.