Skip to content

Commit 1f183b5

Browse files
committed
fix github ecosystem mapping
- GitHub refers `cargo` as `RUST` and `hex` as `ERLANG` Signed-off-by: Keshav Priyadarshi <[email protected]>
1 parent 33b3d92 commit 1f183b5

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

vulntotal/datasources/github.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ def supported_ecosystem(cls):
5858
"pypi": "PIP",
5959
"gem": "RUBYGEMS",
6060
"golang": "GO",
61-
"rust": "RUST",
61+
"cargo": "RUST",
6262
"npm": "NPM",
63-
"erlang": "ERLANG",
63+
"hex": "ERLANG",
6464
}
6565

6666

vulntotal/tests/test_github.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ def test_generate_graphql_payload(self):
2828
"pkg:npm/[email protected]",
2929
"pkg:golang/github.com/cloudflare/[email protected]",
3030
"pkg:composer/symfony/[email protected]",
31-
"pkg:rust/[email protected]",
32-
"pkg:erlang/[email protected]",
31+
"pkg:cargo/[email protected]",
32+
"pkg:hex/[email protected]",
3333
"pkg:gem/[email protected]",
3434
]
3535
results = [

0 commit comments

Comments
 (0)