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 an output type for CycloneDX JSON format #631

Closed
dmikusa opened this issue Nov 15, 2021 · 1 comment · Fixed by #635
Closed

Add an output type for CycloneDX JSON format #631

dmikusa opened this issue Nov 15, 2021 · 1 comment · Fixed by #635
Assignees
Labels
enhancement New feature or request

Comments

@dmikusa
Copy link

dmikusa commented Nov 15, 2021

What would you like to be added:

Presently you can syft packages -o cyclonedx dir:. and you'll get a CycloneDX report in XML. There are tools to convert it to JSON, but it's an extra step.

It would be helpful there was a cyclonedx-json (or something like that) output format that would directly output CycloneDX JSON.

Why is this needed:

It would make using syft more convenient for use cases that require CycloneDX JSON output. No additional tools or libraries would be required to convert from XML to JSON.

Additional context:

The Buildpacks specification has been standardized around using JSON output. Many of the buildpacks we are developing are generating SBoMs using syft, which leaves us needing to convert from CycloneDX XML to JSON. Having an option for direct output would make our integrations easier.

Thanks!

@sophiewigmore
Copy link

I am also interested in this request!

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

Successfully merging a pull request may close this issue.

3 participants