-
Notifications
You must be signed in to change notification settings - Fork 547
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 support in "cosign attach" and "cosign download sbom". #387
Conversation
cmd/cosign/cli/attach/sbom.go
Outdated
return err | ||
} | ||
// TODO: Fix me. | ||
m.Config.MediaType = "application/vnd.sbom.config.v1+json" |
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.
@jonjohnsonjr what do i put here
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.
Is there any useful configuration you'd want to put in there?
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.
No. I could eventually see the need for multiple SBOMs (one for the overall image, then some for sub-parts), but that would get tackled via annotations on each layer to indicate which portion of the image the SBOM is intended to cover.
f5f1877
to
784c153
Compare
cmd/cosign/cli/attach/sbom.go
Outdated
if err != nil { | ||
return err | ||
} | ||
m.Config.MediaType = "text/spdx" |
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.
Is it possible to support both cyclonedx and spdx here?
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.
Yup! added
e1b1765
to
ebd4d92
Compare
This is ready! Signed-off-by: Dan Lorenc <dlorenc@google.com>
Dropping the WIP, this is ready to go! |
Signed-off-by: Dan Lorenc dlorenc@google.com