-
Notifications
You must be signed in to change notification settings - Fork 532
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
Support generating multiple BOM files in different formats within a run #325
Comments
@ScottChapman This is interesting! I could see a few syntaxes to consider, e.g.:
Something to consider: Right now, with just a single output format, it makes the process of saving or redirecting the output very easy and straightforward. For example: Saving the output:
Piping the output to another tool:
I'm curious how we'd explain the process of integrating syft into shell commands and scripts when using multiple BOM formats... |
That's a good point. Typically the ...or you could support a new feature which would be to convert the JSON -> another format, like: |
That's a good point. I've seen both, but most tools with Since users are already using
I like this! We've talked about this internally a little bit. I think there's potential here... |
This idea is now described briefly in #400. EDIT: There's now an even more explicit issue for supporting SBOM format conversion in Syft: #563 |
Jotting down an idea for CLI syntax from @wagoodman — To specify multiple output formats, you'd specify the flag For example:
This could optionally tie into an idea I had recently, too: As a convenience: if multiple formats are specified (such as via using For example:
Would produce the files:
...given the assumption that we've defined |
There are a number of suggestions here. I'd like to propose using the
|
The input parsing approach attempts to follow the URI spec for resolving a resource (how to get it and interpret it as). I don't think applying the URI spec makes semantic sense from the perspective of specifying the format and location to write the SBOM out to. I agree that using The |
Oddly,
|
We like the idea of having a superset data format like JSON, but we also want to be generating CycloneDX format for compatibility with other tooling we're invested in.
I think either you could support multiple
-o
options to generate the formats all at once, or perhaps support conversion from JSON to the other formats you supportThe text was updated successfully, but these errors were encountered: