Repository navigation
Add CycloneDX output format - #222
Merged
Merged
Conversation
A URL list is hard to represent in the usual SBOM and dependency manifest formats, and that was the original reason this tool exists. This adds a cyclonedx output format so detected URLs can be written out as a CycloneDX 1.5 bill of materials. Each unique URL becomes a single component. Every place it was found is recorded in a url-detector:locations property, and the URL is also exposed as a distribution external reference. Since a URL on its own does not carry a version or a license, the BOM only records what is actually known about it. The output is validated against the official CycloneDX 1.5 JSON schema.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #222 +/- ##
==========================================
+ Coverage 80.40% 80.78% +0.38%
==========================================
Files 10 10
Lines 597 609 +12
Branches 143 144 +1
==========================================
+ Hits 480 492 +12
Misses 66 66
Partials 51 51
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
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.
Detected URLs can now be written out as a CycloneDX 1.5 bill of materials.
The reason this tool exists is that a list of external URL dependencies is a gap in the usual SBOM and dependency manifest formats. A URL on its own does not carry a version or a license, so a full SBOM is not always possible, but there is still a useful manifest to produce. This adds
cyclonedxas an output format alongsidetable,json, andcsv.Each unique URL becomes a single component. Every place it was found in the scanned files is recorded in a
url-detector:locationsproperty, and the URL is also exposed as adistributionexternal reference. The BOM records only what is actually known about a URL, which is the intended shape for a URL only manifest.Usage:
The output has been validated against the official CycloneDX 1.5 JSON schema.