-
Notifications
You must be signed in to change notification settings - Fork 598
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
feat: 3098 add support for user to flag root package supplier and supplier inheritance #3646
Open
spiffcs
wants to merge
16
commits into
main
Choose a base branch
from
1961-add-suport-package-supplier
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains 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
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Christopher Phillips <[email protected]>
This was
linked to
issues
Feb 6, 2025
…suport-package-supplier * 'main' of https://github.com/anchore/syft: chore(deps): bump github/codeql-action from 3.28.8 to 3.28.9 (#3648) feat: 3626 add option enable license content; disable by default (#3631)
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Christopher Phillips <[email protected]>
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.
Description
This PR adds a new flag to syft called
--supplier
. This flag allows syft users to associate an optionalsupplier
to the root of the final document as well as components that do not declare a supplier for the following formats:syft-json
spdx-json
cyclonedx-json
spdx
cyclonedx
The
--supplier
will be used to determine the supplier of the root component of the SBOM as well as any components that haveNO ASSERTION
or""
as their supplier.This allows organizations generating SBOMs who want to produce NTIA compliant documents to assume the
supplier
field for components where a supplier could not be determined or does not exist.Adds
supplier
to the following outputs:spdx
go run cmd/syft/main.go -o spdx alpine:latest --supplier optional-supplier > test.json
spdx-json
go run cmd/syft/main.go -o spdx-json alpine:latest --supplier optional-supplier > test.json
syft-json
go run cmd/syft/main.go -o json alpine:latest --supplier optional-supplier > test.json
cyclonedx-json
Note: for cyclonedx-json we're putting supplier in two spots that the format supports. One is the top level BOM description. The other is for the root component identified in the bom
go run cmd/syft/main.go -o cyclonedx-json alpine:latest --supplier optional-supplier > test.json
cyclonedx
Fixes
PackageSupplier
in root of SPDX document generated by CLI #3098Type of change
Checklist: