Skip to content
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

BUG: Maven packages not scanned when importing SBOM #258

Open
ghsa-retrieval opened this issue Feb 10, 2025 · 0 comments
Open

BUG: Maven packages not scanned when importing SBOM #258

ghsa-retrieval opened this issue Feb 10, 2025 · 0 comments
Labels
bug Something isn't working design needed Design details needed to complete the issue enhancement New feature or request

Comments

@ghsa-retrieval
Copy link

ghsa-retrieval commented Feb 10, 2025

Describe the bug
It appears that importing an SBOM that contains a mix of npm and Maven packages only results in npm packages being scanned by ScanCode.io. It seems that DejaCode is unable to retrieve the download URL from the given PURL, perhaps due to missing purl2url implementation (package-url/packageurl-python#179), if no other means of translation to a download URL is available.

To Reproduce

  1. Ensure that the example package pkg:maven/commons-cli/[email protected] is not already listed in the packages
  2. Create a DejaCode product
  3. Import the SBOM with options "Update existing packages with discovered packages data" and "Scan all packages of this product post-import" enabled
    mwe-dejacode-258.json

You should be able to see that the load_sbom pipeline is run successfully in ScanCode.io, but not scan_single_package is triggered.

Note: The SBOM is a manually shortened version, since I cannot share the original file

Expected behavior
All packages in the SBOM should be scanned for license information

Screenshots
n.a.

Context (OS, Browser, Device, etc.):
n.a.

@ghsa-retrieval ghsa-retrieval added bug Something isn't working design needed Design details needed to complete the issue enhancement New feature or request labels Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working design needed Design details needed to complete the issue enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant