Skip to content

Commit a224720

Browse files
committed
Add support for conan advisories
Signed-off-by: Tushar Goel <[email protected]>
1 parent e4849ff commit a224720

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vulnerabilities/importers/gitlab.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333

3434

3535
PURL_TYPE_BY_GITLAB_SCHEME = {
36-
# "conan": "conan",
36+
"conan": "conan",
3737
"gem": "gem",
3838
# Entering issue to parse go package names https://github.com/nexB/vulnerablecode/issues/742
3939
# "go": "golang",
@@ -203,7 +203,7 @@ def parse_gitlab_advisory(file):
203203
affected_version_range = None
204204
fixed_versions = gitlab_advisory.get("fixed_versions") or []
205205
affected_range = gitlab_advisory.get("affected_range")
206-
gitlab_native_schemes = set(["pypi", "gem", "npm", "go", "packagist"])
206+
gitlab_native_schemes = set(["pypi", "gem", "npm", "go", "packagist", "conan"])
207207
vrc: VersionRange = RANGE_CLASS_BY_SCHEMES[purl.type]
208208
gitlab_scheme = GITLAB_SCHEME_BY_PURL_TYPE[purl.type]
209209
try:

0 commit comments

Comments
 (0)