Skip to content
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 option to specify SBOM format #110

Open
mqf20 opened this issue Jul 9, 2024 · 2 comments
Open

Add option to specify SBOM format #110

mqf20 opened this issue Jul 9, 2024 · 2 comments
Labels
kind/enhancement New feature or request

Comments

@mqf20
Copy link

mqf20 commented Jul 9, 2024

Currently, buildkit-syft-scanner generates only SPDX-JSON SBOMs.

Would the maintainers be open to supporting other types of SBOMs (e.g., CYCLONEDX-JSON)?

@mqf20 mqf20 changed the title Add Option to specify SBOM format Add option to specify SBOM format Jul 9, 2024
@thompson-shaun thompson-shaun added the kind/enhancement New feature or request label Aug 8, 2024
@cdupuis
Copy link
Collaborator

cdupuis commented Dec 9, 2024

If I remember correctly SDPX is enforced right now on the buildkit side. See https://github.com/moby/buildkit/blob/55a7483b0564a7ad5b2ce5e62512789dce327bca/frontend/attestations/sbom/sbom.go#L103.

@tonistiigi is that something you'd consider changing on the buildkit side? Perhaps get the predicate-type from the created attestation?

@tonistiigi
Copy link
Member

Iirc the main reason for it is that buildkit will modify the SBOM to add the layer mapping once it has created the image layers. More formats would mean BuildKit needs to have separate code for all of them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants