From 4cea2300631a66d1605228074e8fc4da693b0c8d Mon Sep 17 00:00:00 2001 From: Shivam Kumar <127589548+shivam200446@users.noreply.github.com> Date: Mon, 30 Oct 2023 23:27:00 +0530 Subject: [PATCH 1/3] Update gad_source.py --- cve_bin_tool/data_sources/gad_source.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cve_bin_tool/data_sources/gad_source.py b/cve_bin_tool/data_sources/gad_source.py index b19eec3834..c1d0f194b1 100644 --- a/cve_bin_tool/data_sources/gad_source.py +++ b/cve_bin_tool/data_sources/gad_source.py @@ -23,6 +23,7 @@ class GAD_Source(Data_Source): + """Represents a data source for retrieving Common Vulnerabilities and Exposures (CVEs) from GitLab Advisory Database (GAD).""" SOURCE = "GAD" CACHEDIR = DISK_LOCATION_DEFAULT LOGGER = LOGGER.getChild("CVEDB") @@ -174,6 +175,7 @@ async def update_cve_entries(self): self.all_cve_entries.append(data) def parse_multiple_version(self, range_string): + """Parses multiple version strings from a range string. Args:range_string (str): The range string to parse. Returns:list: A list of parsed version strings.""" version_strings = range_string.split(",") start = False versions = [] From ebc066a59a1efa36bb15174291ca0af1e4c83680 Mon Sep 17 00:00:00 2001 From: Shivam Kumar <127589548+shivam200446@users.noreply.github.com> Date: Tue, 31 Oct 2023 00:31:36 +0530 Subject: [PATCH 2/3] Update gad_source.py --- cve_bin_tool/data_sources/gad_source.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cve_bin_tool/data_sources/gad_source.py b/cve_bin_tool/data_sources/gad_source.py index c1d0f194b1..1d291d4295 100644 --- a/cve_bin_tool/data_sources/gad_source.py +++ b/cve_bin_tool/data_sources/gad_source.py @@ -175,7 +175,9 @@ async def update_cve_entries(self): self.all_cve_entries.append(data) def parse_multiple_version(self, range_string): - """Parses multiple version strings from a range string. Args:range_string (str): The range string to parse. Returns:list: A list of parsed version strings.""" + """Parses multiple version strings from a range string. + Args:range_string (str): The range string to parse. + Returns:list: A list of parsed version strings.""" version_strings = range_string.split(",") start = False versions = [] From a0cbfccc8178d239cd84c788407c47c990ab1037 Mon Sep 17 00:00:00 2001 From: Terri Oda Date: Thu, 2 Nov 2023 09:25:18 -0700 Subject: [PATCH 3/3] chore: blacken cve_bin_tool/data_sources/gad_source.py --- cve_bin_tool/data_sources/gad_source.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cve_bin_tool/data_sources/gad_source.py b/cve_bin_tool/data_sources/gad_source.py index 1d291d4295..081f4dca31 100644 --- a/cve_bin_tool/data_sources/gad_source.py +++ b/cve_bin_tool/data_sources/gad_source.py @@ -24,6 +24,7 @@ class GAD_Source(Data_Source): """Represents a data source for retrieving Common Vulnerabilities and Exposures (CVEs) from GitLab Advisory Database (GAD).""" + SOURCE = "GAD" CACHEDIR = DISK_LOCATION_DEFAULT LOGGER = LOGGER.getChild("CVEDB")