Skip to content

Commit b671048

Browse files
committed
Fix a typo in the purl affected version range condition
Signed-off-by: ziad hany <ziadhany2016@gmail.com>
1 parent b67dd44 commit b671048

File tree

1 file changed

+1
-1
lines changed
  • vulnerabilities/importers

1 file changed

+1
-1
lines changed

vulnerabilities/importers/osv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def parse_advisory_data_v2(
140140
purl = get_affected_purl(affected_pkg=affected_pkg, raw_id=advisory_id)
141141

142142
affected_version_range = None
143-
if purl and purl.type not in supported_ecosystems:
143+
if purl and purl.type in supported_ecosystems:
144144
affected_version_range = get_affected_version_range(
145145
affected_pkg=affected_pkg,
146146
raw_id=advisory_id,

0 commit comments

Comments
 (0)