-
Notifications
You must be signed in to change notification settings - Fork 594
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
include image labels in cycloneDX SBOM #2294
Conversation
Signed-off-by: Benji Visser <[email protected]>
Signed-off-by: Benji Visser <[email protected]>
Signed-off-by: Benji Visser <[email protected]>
Signed-off-by: Benji Visser <[email protected]>
Signed-off-by: Benji Visser <[email protected]>
Signed-off-by: Benji Visser <[email protected]>
Signed-off-by: Benji Visser <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
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.
nice add 🙌 I only added an extra test case
I'm going to make one more change: remove the need to update the snapshot test (since that updates a binary in the repo)
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
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.
I made one more update to remove the change to the snapshot tests since they updated the golden bin that is captured in the repo. Changing this isn't a bad thing, but it seemed unnecessary since it could be captured in a lower level unit test (which I just added). Snapshot tests are great for change detection with how the component is wired together, and less about correctness of values in different circumstances.
* include image labels in SBOM Signed-off-by: Benji Visser <[email protected]> * update tests Signed-off-by: Benji Visser <[email protected]> * gocritic Signed-off-by: Benji Visser <[email protected]> * add properties Signed-off-by: Benji Visser <[email protected]> * add decoder Signed-off-by: Benji Visser <[email protected]> * update golden snapshots Signed-off-by: Benji Visser <[email protected]> * decodeProperties Signed-off-by: Benji Visser <[email protected]> * add test Signed-off-by: Alex Goodman <[email protected]> * remove the snapshot test changes Signed-off-by: Alex Goodman <[email protected]> * restore snapshots Signed-off-by: Alex Goodman <[email protected]> --------- Signed-off-by: Benji Visser <[email protected]> Signed-off-by: Alex Goodman <[email protected]> Co-authored-by: Alex Goodman <[email protected]>
This PR adds a
metadata.properties
field with information about image labels to cycloneDX SBOMsresolves #2267