Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add an output type for CycloneDX JSON format #631

@dmikusa

Description

@dmikusa

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!

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions