forked from aboutcode-org/vulnerablecode
-
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.
docs(almalinux-importer): Add docstring to
parse_advisory_data
func…
…tion - Added a detailed docstring to the `parse_advisory_data` function in the `almalinux-importer` module. - The docstring includes a clear description of the function's purpose, arguments, return value, and an example usage. - Improved the readability and structure of the example output in the docstring to ensure clarity and consistency. This documentation enhancement makes the `parse_advisory_data` function easier to understand and use, aiding future development and maintenance. Signed-off-by: ambuj <kulshreshthaak.12@gmail.com>
- Loading branch information
1 parent
c679856
commit 088279c
Showing
5 changed files
with
216 additions
and
59 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
38 changes: 24 additions & 14 deletions
38
vulnerabilities/tests/test_data/almalinux/almalinux_expected_1.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,21 +1,31 @@ | ||
{ | ||
"aliases": ["ALBA-2019:3336"], | ||
"summary": "nss-altfiles bug fix and enhancement update\nFor detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.", | ||
"aliases": [ | ||
"ALBA-2019:3336" | ||
], | ||
"summary": "nss-altfiles bug fix and enhancement update\nFor detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.", | ||
"affected_packages": [ | ||
{ | ||
"package": {"type": "rpm", "namespace": "almalinux", "name": "nss-altfiles", "version": "", "qualifiers": "", "subpath": ""}, | ||
"affected_version_range": null, | ||
"fixed_version": "2.18.1-12.el8" | ||
} | ||
], | ||
"package": { | ||
"type": "rpm", | ||
"namespace": "almalinux", | ||
"name": "nss-altfiles", | ||
"version": "", | ||
"qualifiers": "", | ||
"subpath": "" | ||
}, | ||
"affected_version_range": null, | ||
"fixed_version": "2.18.1-12.el8" | ||
} | ||
], | ||
"references": [ | ||
{ | ||
"reference_id": "", | ||
"url": "https://errata.almalinux.org/8/ALBA-2019-3336.html", | ||
"severities": [] | ||
} | ||
], | ||
"date_published": "2019-11-05T17:32:18+00:00", | ||
"weaknesses": [], | ||
"reference_id": "", | ||
"reference_type": "", | ||
"url": "https://errata.almalinux.org/8/ALBA-2019-3336.html", | ||
"severities": [] | ||
} | ||
], | ||
"date_published": "2019-11-05T17:32:18+00:00", | ||
"weaknesses": [], | ||
"url": "https://github.com/AlmaLinux/osv-database/blob/master/advisories/almalinux8/almalinux_test_1.json" | ||
} |
27 changes: 17 additions & 10 deletions
27
vulnerabilities/tests/test_data/almalinux/almalinux_expected_2.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,17 +1,24 @@ | ||
{ | ||
"aliases": ["ALEA-2019:3314"], | ||
"summary": "python3-azure-sdk bug fix and enhancement update\nFor detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.", | ||
"aliases": [ | ||
"ALEA-2019:3314" | ||
], | ||
"summary": "python3-azure-sdk bug fix and enhancement update\nFor detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.", | ||
"affected_packages": [ | ||
{ | ||
"package": { | ||
"type": "rpm", "namespace": "almalinux", "name": "python3-azure-sdk", "version": "", "qualifiers": "", "subpath": "" | ||
}, | ||
"affected_version_range": null, | ||
"fixed_version": "4.0.0-9.el8" | ||
"type": "rpm", | ||
"namespace": "almalinux", | ||
"name": "python3-azure-sdk", | ||
"version": "", | ||
"qualifiers": "", | ||
"subpath": "" | ||
}, | ||
"affected_version_range": null, | ||
"fixed_version": "4.0.0-9.el8" | ||
} | ||
], | ||
"references": [], | ||
"date_published": "2019-11-05T17:29:24+00:00", | ||
"weaknesses": [], | ||
], | ||
"references": [], | ||
"date_published": "2019-11-05T17:29:24+00:00", | ||
"weaknesses": [], | ||
"url": "https://github.com/AlmaLinux/osv-database/blob/master/advisories/almalinux8/almalinux_test_2.json" | ||
} |
159 changes: 127 additions & 32 deletions
159
vulnerabilities/tests/test_data/almalinux/almalinux_expected_3.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,50 +1,145 @@ | ||
{ | ||
"aliases": ["ALSA-2022:8221"], | ||
"summary": "Moderate: xorg-x11-server security and bug fix update\nX.Org is an open-source implementation of the X Window System. It provides the basic low-level functionality that full-fledged graphical user interfaces are designed upon.\n\nSecurity Fix(es)n\n* xorg-x11-server: X.Org Server ProcXkbSetGeometry out-of-bounds access (CVE-2022-2319)\n* xorg-x11-server: out-of-bounds access in ProcXkbSetDeviceInfo request handler of the Xkb extension VE-2022-2320)\n\nFor more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.\nAdditional Changes:\n\nFor detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.", | ||
"aliases": [ | ||
"ALSA-2022:8221" | ||
], | ||
"summary": "Moderate: xorg-x11-server security and bug fix update\nX.Org is an open-source implementation of the X Window System. It provides the basic low-level functionality that full-fledged graphical user interfaces are designed upon.\n\nSecurity Fix(es)n\n* xorg-x11-server: X.Org Server ProcXkbSetGeometry out-of-bounds access (CVE-2022-2319)\n* xorg-x11-server: out-of-bounds access in ProcXkbSetDeviceInfo request handler of the Xkb extension VE-2022-2320)\n\nFor more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.\nAdditional Changes:\n\nFor detailed information on changes in this release, see the AlmaLinux Release Notes linked from the References section.", | ||
"affected_packages": [ | ||
{"package": {"type": "rpm", "namespace": "almalinux", "name": "xorg-x11-server-Xdmx", "version": "", "qualifiers": "", "subpath": ""}, "affected_version_range": null, "fixed_version": "1.20.11-11.el9"}, | ||
{"package": {"type": "rpm", "namespace": "almalinux", "name": "xorg-x11-server-Xephyr", "version": "", "qualifiers": "", "subpath": ""}, "affected_version_range": null, "fixed_version": "1.20.11-11.el9"}, | ||
{"package": {"type": "rpm", "namespace": "almalinux", "name": "xorg-x11-server-Xnest", "version": "", "qualifiers": "", "subpath": ""}, "affected_version_range": null, "fixed_version": "1.20.11-11.el9"}, | ||
{"package": {"type": "rpm", "namespace": "almalinux", "name": "xorg-x11-server-Xorg", "version": "", "qualifiers": "", "subpath": ""}, "affected_version_range": null, "fixed_version": "1.20.11-11.el9"}, | ||
{"package": {"type": "rpm", "namespace": "almalinux", "name": "xorg-x11-server-Xvfb", "version": "", "qualifiers": "", "subpath": ""}, "affected_version_range": null, "fixed_version": "1.20.11-11.el9"}, | ||
{"package": {"type": "rpm", "namespace": "almalinux", "name": "xorg-x11-server-common", "version": "", "qualifiers": "", "subpath": ""}, "affected_version_range": null, "fixed_version": "1.20.11-11.el9"}, | ||
{"package": {"type": "rpm", "namespace": "almalinux", "name": "xorg-x11-server-devel", "version": "", "qualifiers": "", "subpath": ""}, "affected_version_range": null, "fixed_version": "1.20.11-11.el9"}, | ||
{"package": {"type": "rpm", "namespace": "almalinux", "name": "xorg-x11-server-source", "version": "", "qualifiers": "", "subpath": ""}, "affected_version_range": null, "fixed_version": "1.20.11-11.el9"} | ||
|
||
], | ||
{ | ||
"package": { | ||
"type": "rpm", | ||
"namespace": "almalinux", | ||
"name": "xorg-x11-server-Xdmx", | ||
"version": "", | ||
"qualifiers": "", | ||
"subpath": "" | ||
}, | ||
"affected_version_range": null, | ||
"fixed_version": "1.20.11-11.el9" | ||
}, | ||
{ | ||
"package": { | ||
"type": "rpm", | ||
"namespace": "almalinux", | ||
"name": "xorg-x11-server-Xephyr", | ||
"version": "", | ||
"qualifiers": "", | ||
"subpath": "" | ||
}, | ||
"affected_version_range": null, | ||
"fixed_version": "1.20.11-11.el9" | ||
}, | ||
{ | ||
"package": { | ||
"type": "rpm", | ||
"namespace": "almalinux", | ||
"name": "xorg-x11-server-Xnest", | ||
"version": "", | ||
"qualifiers": "", | ||
"subpath": "" | ||
}, | ||
"affected_version_range": null, | ||
"fixed_version": "1.20.11-11.el9" | ||
}, | ||
{ | ||
"package": { | ||
"type": "rpm", | ||
"namespace": "almalinux", | ||
"name": "xorg-x11-server-Xorg", | ||
"version": "", | ||
"qualifiers": "", | ||
"subpath": "" | ||
}, | ||
"affected_version_range": null, | ||
"fixed_version": "1.20.11-11.el9" | ||
}, | ||
{ | ||
"package": { | ||
"type": "rpm", | ||
"namespace": "almalinux", | ||
"name": "xorg-x11-server-Xvfb", | ||
"version": "", | ||
"qualifiers": "", | ||
"subpath": "" | ||
}, | ||
"affected_version_range": null, | ||
"fixed_version": "1.20.11-11.el9" | ||
}, | ||
{ | ||
"package": { | ||
"type": "rpm", | ||
"namespace": "almalinux", | ||
"name": "xorg-x11-server-common", | ||
"version": "", | ||
"qualifiers": "", | ||
"subpath": "" | ||
}, | ||
"affected_version_range": null, | ||
"fixed_version": "1.20.11-11.el9" | ||
}, | ||
{ | ||
"package": { | ||
"type": "rpm", | ||
"namespace": "almalinux", | ||
"name": "xorg-x11-server-devel", | ||
"version": "", | ||
"qualifiers": "", | ||
"subpath": "" | ||
}, | ||
"affected_version_range": null, | ||
"fixed_version": "1.20.11-11.el9" | ||
}, | ||
{ | ||
"package": { | ||
"type": "rpm", | ||
"namespace": "almalinux", | ||
"name": "xorg-x11-server-source", | ||
"version": "", | ||
"qualifiers": "", | ||
"subpath": "" | ||
}, | ||
"affected_version_range": null, | ||
"fixed_version": "1.20.11-11.el9" | ||
} | ||
], | ||
"references": [ | ||
{ | ||
"reference_id": "", | ||
"url": "https://access.redhat.com/errata/RHSA-2022:8221", | ||
"reference_id": "", | ||
"reference_type": "", | ||
"url": "https://access.redhat.com/errata/RHSA-2022:8221", | ||
"severities": [] | ||
}, | ||
}, | ||
{ | ||
"reference_id": "", | ||
"url": "https://access.redhat.com/security/cve/CVE-2022-2319", | ||
"reference_id": "", | ||
"reference_type": "", | ||
"url": "https://access.redhat.com/security/cve/CVE-2022-2319", | ||
"severities": [] | ||
}, | ||
}, | ||
{ | ||
"reference_id": "", | ||
"url": "https://access.redhat.com/security/cve/CVE-2022-2320", | ||
"reference_id": "", | ||
"reference_type": "", | ||
"url": "https://access.redhat.com/security/cve/CVE-2022-2320", | ||
"severities": [] | ||
}, | ||
}, | ||
{ | ||
"reference_id": "", | ||
"url": "https://bugzilla.redhat.com/2106671", | ||
"reference_id": "", | ||
"reference_type": "", | ||
"url": "https://bugzilla.redhat.com/2106671", | ||
"severities": [] | ||
}, | ||
}, | ||
{ | ||
"reference_id": "", | ||
"url": "https://bugzilla.redhat.com/2106683", | ||
"reference_id": "", | ||
"reference_type": "", | ||
"url": "https://bugzilla.redhat.com/2106683", | ||
"severities": [] | ||
}, | ||
}, | ||
{ | ||
"reference_id": "", | ||
"url": "https://errata.almalinux.org/9/ALSA-2022-8221.html", | ||
"reference_id": "", | ||
"reference_type": "", | ||
"url": "https://errata.almalinux.org/9/ALSA-2022-8221.html", | ||
"severities": [] | ||
} | ||
], | ||
"date_published": "2022-11-15T00:00:00+00:00", | ||
"weaknesses": [], | ||
], | ||
"date_published": "2022-11-15T00:00:00+00:00", | ||
"weaknesses": [], | ||
"url": "https://github.com/AlmaLinux/osv-database/blob/master/advisories/almalinux8/almalinux_test_3.json" | ||
} |