Skip to content

Commit

Permalink
Merge pull request nexB#1399 from shravankshenoy/bug/vulntotal-github…
Browse files Browse the repository at this point in the history
…-cve-version-bug

Fix incorrect versions in GithubDataSource CVE
  • Loading branch information
keshav-space committed Jan 22, 2024
2 parents 5cefff7 + 6951513 commit 1fc186c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vulntotal/datasources/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def datasource_advisory_from_cve(self, cve: str) -> Iterable[VendorData]:
yield VendorData(
purl=purl,
aliases=sorted(list(set(advisory.get("identifiers", None)))),
affected_versions=sorted(list(set(advisory.get("firstPatchedVersion", None)))),
fixed_versions=sorted(list(set(advisory.get("vulnerableVersionRange", None)))),
affected_versions=sorted(list(set(advisory.get("vulnerableVersionRange", None)))),
fixed_versions=sorted(list(set(advisory.get("firstPatchedVersion", None)))),
)

@classmethod
Expand Down

0 comments on commit 1fc186c

Please sign in to comment.