-
Notifications
You must be signed in to change notification settings - Fork 574
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
Add configuration to disable capturing any file info in SBOM #3132
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: tomersein <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
force push was to rebase / solve merge conflicts |
Signed-off-by: Alex Goodman <[email protected]>
for _, relationship := range s.Relationships { | ||
for _, coordinates := range extractCoordinates(relationship) { | ||
set.Add(coordinates) | ||
if set.Size() > 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the downside with this is that we are adding relationships already from pkg-to-file or file-to-file and here we're silently dropping only the nodes, but not changing the relationships. I think this part needs a little more thought -- that is, if there is an edge in the SBOM that describes the file directly, then we either need to include that file or drop the relationship.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi! sounds right.. however I am not sure how to solve it.
please let me know how to proceed further so this PR can be merged in the future :)
Adds
files.enable
configuration such that, when set tofalse
, no entries are populated in the.files
section of the SBOM.Closes #2989