Skip to content

Conversation

@Monal-Reddy
Copy link

Fixes #1914

This PR improves the load_sbom pipeline handling of SPDX SBOMs by generating a fallback pkg:generic PURL when an SPDX package does not provide an explicit PURL but does include a name and version.

This avoids classifying such packages as pkg:unknown, improving package typing and downstream reporting for SPDX-based Python SBOMs.

Tested locally using ScanCode.io with:

  • Python-3.13.9.tgz.spdx.json
  • load_sbom pipeline

Previously affected packages such as CPython, expat, libb2, and mpdecimal are now correctly represented as pkg:generic/*.

Signed-off-by: Monal-Reddy <monalreddy001@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Improve SPDX import from Python SBOMs

1 participant