File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -155,10 +155,12 @@ def create_pkg_variations(pkg_dict):
155
155
for suffix in COMMON_SUFFIXES :
156
156
if name .endswith (suffix ):
157
157
name_aliases .add (name .replace (suffix , "" ))
158
- for k , v in config .package_alias .items ():
159
- if name .startswith (k ) or k .startswith (name ) or v .startswith (name ):
160
- name_aliases .add (k )
161
- name_aliases .add (v )
158
+ # The below aliasing is resulting in several false positives for npm
159
+ if pkg_type not in ("npm" ,):
160
+ for k , v in config .package_alias .items ():
161
+ if name .startswith (k ) or k .startswith (name ) or v .startswith (name ):
162
+ name_aliases .add (k )
163
+ name_aliases .add (v )
162
164
if pkg_type in config .OS_PKG_TYPES :
163
165
if "lib" in name :
164
166
name_aliases .add (name .replace ("lib" , "" ))
Original file line number Diff line number Diff line change 1
1
[project ]
2
2
name = " owasp-depscan"
3
- version = " 5.0.3 "
3
+ version = " 5.0.4 "
4
4
description = " Fully open-source security audit for project dependencies based on known vulnerabilities and advisories."
5
5
authors = [
6
6
{
name =
" Team AppThreat" ,
email =
" [email protected] " },
You can’t perform that action at this time.
0 commit comments