Skip to content

Commit e89b6fe

Browse files
committed
fix SNYK ecosystem mapping
- snyk refers `gem` as `rubygems` Signed-off-by: Keshav Priyadarshi <[email protected]>
1 parent 7b1fdd1 commit e89b6fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

vulntotal/datasources/snyk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def supported_ecosystem(cls):
6060
"npm": "npm",
6161
"nuget": "nuget",
6262
"pypi": "pip",
63-
"rubygems": "rubygems",
63+
"gem": "rubygems",
6464
# any purl.type not in supported_ecosystem shall implicitly be treated as unmanaged type
6565
"unmanaged": "unmanaged",
6666
}

vulntotal/tests/test_snyk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ def test_generate_package_advisory_url(self):
3030
"pkg:nuget/[email protected]",
3131
"pkg:cocoapods/[email protected]",
3232
"pkg:hex/[email protected]",
33-
"pkg:rubygems/[email protected]",
33+
"pkg:gem/[email protected]",
3434
"pkg:unmanaged/[email protected]",
3535
]
3636
results = [

0 commit comments

Comments
 (0)