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

assemble sboms using primary comp sbom file #134

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

viveksahu26
Copy link
Contributor

@viveksahu26 viveksahu26 commented Jan 2, 2025

closes #128

This PR follows second approach as described here.

This PR introduces a new feature that enhances the sbomasm assemble command by adding support for the --primaryCompFile flag. This feature enables users to specify a primary component SBOM (primaryCompFile) as the base for generating the final assembled SBOM.

For testing, one can use below files:

$ go run main.go assemble --primaryCompFile sbomex-cdx.json -o hierar3-pc-final.cdx.json sbomqs-cdx.json sbomgr-cdx.json

sbomex-cdx.json
sbomgr-cdx.json
sbomqs-cdx.json
hierar3-pc-final.cdx.json

@matglas
Copy link
Contributor

matglas commented Jan 7, 2025

LGTM

@viveksahu26
Copy link
Contributor Author

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.

Feature: Allow one sbom to be the primary document in assemble action
2 participants