Skip to content

Commit

Permalink
fix: add reachable label when a purl does not have a vendor (#344)
Browse files Browse the repository at this point in the history
fix
  • Loading branch information
harshit-kochar authored Sep 10, 2024
1 parent 2f527a3 commit 547e9fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion depscan/lib/analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -1697,7 +1697,7 @@ def process_vuln_occ(bom_dependency_tree, direct_purls, oci_product_types, optio
counts.has_poc_count += 1
if pkg_severity in ("CRITICAL", "HIGH"):
pkg_requires_attn = True
if clinks.get("vendor") and package_type not in config.OS_PKG_TYPES:
if (clinks.get("vendor") and package_type not in config.OS_PKG_TYPES) or reached_purls.get(purl):
if reached_purls.get(purl):
# If it has a poc, an insight might have gotten added above
if not pkg_requires_attn:
Expand Down

0 comments on commit 547e9fb

Please sign in to comment.