-
Notifications
You must be signed in to change notification settings - Fork 19
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
SBOM: add support for CycloneDX v1.5 and add HOST_IMAGE SBOMSourceType #286
Conversation
8981c32
to
2a40370
Compare
2a40370
to
64af5f2
Compare
@@ -29,7 +30,8 @@ message SBOMEntity { | |||
string hash = 9; // Hash of the SBOM | |||
oneof sbom { | |||
cyclonedx.v1_4.Bom cyclonedx = 10; // only cyclonedx will be supported initially but putting it optional will allow us to move to another format later |
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’m wondering if it would make sense to rename that field cyclonedx_1_4
for homogeneity with the new field.
cyclonedx.v1_4.Bom cyclonedx = 10; // only cyclonedx will be supported initially but putting it optional will allow us to move to another format later | |
cyclonedx.v1_4.Bom cyclonedx_1_4 = 10; // only cyclonedx will be supported initially but putting it optional will allow us to move to another format later |
It would be a non source compatible change that will require to update:
when bumping the version of agent-payload
in those repositories.
But as long as the ID (10
) remains unchanged, it has no impact on the on-wire message.
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.
Agreed. Can we plan that in another PR ?
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.
Or we can re-open two separate PRs. One for HOST_IMAGE
and one for clyclonedx 1.5.x. That'll make things easier for us.
What does this PR do?
Two changes in
sbom.proto
:HOST_IMAGE
source typeMotivation
cc @Bit-Doctor
Additional Notes
Possible Drawbacks / Trade-offs
Describe how to test/QA your changes
Reviewer's Checklist
Reviewers: please see the review guidelines.