Repository navigation
fix: preserve PURLs on CycloneDX dependencies - #2366
Open
codewithfourtix wants to merge 1 commit into
Open
codewithfourtix wants to merge 1 commit into
codewithfourtix wants to merge 1 commit into
Conversation
Copy package URL fields from the resolved package when creating SBOM dependencies so they can be displayed and collected for PurlDB. Cover the reported Python PURL and all package URL fields in regression tests, including the PurlDB consumer. Fixes aboutcode-org#1644 Signed-off-by: Ali Zulfiqar <codewithfourtix@gmail.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issues
populate_purldbon project where previous run wasload_sbom#1644Changes
CycloneDX SBOM imports created dependency relationships without their PURL fields, even when the resolved package had a valid PURL. This left the dependency's Package URL and Type columns empty and caused
populate_purldbto raiseInvalid purl: type is a required argument.Copy the PURL fields from the resolved package when creating these dependencies, using the existing
PACKAGE_URL_FIELDSconstant. Package relationships and dependency flags are preserved.Add regression coverage for the reported Python PURL, a PURL with namespace, qualifiers and subpath, and collecting imported dependency PURLs for PurlDB. This applies to new imports; previously imported SBOMs need to be loaded again to populate the missing fields.
Validation
ValueError.PipelinesIntegrationTest.test_scanpipe_load_sbom_pipeline_cyclonedx_with_dependencies_integration.uv lock --check, and dependency compatibility checks passed.Checklist