Skip to content

Commit 80f883a

Browse files
committed
Reference: #673
Return PackageURL for composer in github if namespace is not present Signed-off-by: Tushar Goel <tushar.goel.dav@gmail.com>
1 parent 831e566 commit 80f883a

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

vulnerabilities/importers/github.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,7 @@ def get_purl(pkg_type: str, github_name: str) -> Optional[PackageURL]:
208208

209209
if pkg_type == "composer":
210210
if "/" not in github_name:
211-
logger.error(f"get_purl: Invalid composer package name {github_name}")
212-
return
211+
return PackageURL(type=pkg_type, name=github_name)
213212
vendor, _, name = github_name.partition("/")
214213
return PackageURL(type=pkg_type, namespace=vendor, name=name)
215214

0 commit comments

Comments
 (0)