Skip to content

Commit d24c981

Browse files
committed
Use vendor alias only for name based searches
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
1 parent b3e1b3f commit d24c981

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

depscan/lib/normalize.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def create_pkg_variations(pkg_dict):
100100
]:
101101
vendor_aliases.add("golang")
102102
if pkg_type not in config.OS_PKG_TYPES:
103-
if purl.startswith("pkg:composer"):
103+
if not vendor and purl.startswith("pkg:composer"):
104104
vendor_aliases.add("get" + name)
105105
vendor_aliases.add(name + "_project")
106106
for k, v in config.vendor_alias.items():

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "owasp-depscan"
3-
version = "5.2.0"
3+
version = "5.2.1"
44
description = "Fully open-source security audit for project dependencies based on known vulnerabilities and advisories."
55
authors = [
66
{name = "Team AppThreat", email = "cloud@appthreat.com"},

0 commit comments

Comments
 (0)