Skip to content

Commit 7b1fdd1

Browse files
committed
fix OSV ecosystem mapping
- OSV refers `cargo => crates.io`, `gem => RubyGems` and `deb => Debian` Signed-off-by: Keshav Priyadarshi <[email protected]>
1 parent 1f183b5 commit 7b1fdd1

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

vulntotal/datasources/osv.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,12 @@ def supported_ecosystem(cls):
5151
"golang": "Go",
5252
"nuget": "NuGet",
5353
"pypi": "PyPI",
54-
"rubygems": "RubyGems",
55-
"crates.io": "crates.io",
54+
"gem": "RubyGems",
55+
"cargo": "crates.io",
5656
"composer": "Packagist",
5757
"linux": "Linux",
5858
"oss-fuzz": "OSS-Fuzz",
59-
"debian": "Debian",
59+
"deb": "Debian",
6060
"hex": "Hex",
6161
"android": "Android",
6262
}

vulntotal/tests/test_osv.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ def test_generate_payload(self):
2525
purls = [
2626
"pkg:pypi/[email protected]",
2727
"pkg:android/System@10",
28-
"pkg:debian:8/[email protected]",
28+
"pkg:deb:8/[email protected]",
2929
"pkg:maven/org.apache.tomcat/[email protected]",
3030
"pkg:linux/[email protected]",
3131
"pkg:packagist/dolibarr/[email protected]",
32-
"pkg:crates.io/[email protected]",
32+
"pkg:cargo/[email protected]",
3333
"pkg:npm/[email protected]",
3434
"pkg:golang/github.com/cloudflare/[email protected]",
3535
]

0 commit comments

Comments
 (0)