-
-
Notifications
You must be signed in to change notification settings - Fork 36
Collect pypi PURL ondemand #468 #592
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
It's now able to fetch JSON from PyPI API with inputing thr pypi purl with version and pass it to scan and return the scan result. ToDo item is the second part of the issue Signed-off-by: Chin Yeung Li <[email protected]>
…he PURL. Signed-off-by: Chin Yeung Li <[email protected]>
Signed-off-by: Chin Yeung Li <[email protected]>
…ackages are available for a single version. Signed-off-by: Chin Yeung Li <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chinyeungli Code looks good so far, just needs some tests
minecode/collectors/pypi.py
Outdated
packages = build_packages(package_json, package_url) | ||
|
||
for package in packages: | ||
# package.extra_data["package_content"] = PackageContentType.SOURCE_ARCHIVE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove line if not needed
Correct typo Signed-off-by: Chin Yeung Li <[email protected]> Co-authored-by: Jono Yang <[email protected]>
Signed-off-by: Chin Yeung Li <[email protected]>
Signed-off-by: Chin Yeung Li <[email protected]>
Signed-off-by: Chin Yeung Li <[email protected]>
if not url: | ||
continue | ||
|
||
packagetype = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@chinyeungli The changes you made here are breaking the tests in for minecode/tests/miners/test_pypi.py
https://dev.azure.com/nexB/purldb/_build/results?buildId=15751&view=logs&j=0cfca3bc-aa91-566e-292e-f125b0e3456a&t=0ab68744-bd25-5ccd-cfbc-bd1d5e7178c3&l=1033
Signed-off-by: Chin Yeung Li <[email protected]>
Signed-off-by: Chin Yeung Li <[email protected]>
Signed-off-by: Chin Yeung Li <[email protected]>
Signed-off-by: Chin Yeung Li <[email protected]>
@chinyeungli LGTM! merging |
Collect pypi PURL ondemand #468
file_name
qualifier when multiple packages are available for a single version.