-
-
Notifications
You must be signed in to change notification settings - Fork 63
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
cyclonedx merge defaults to specVersion 1.5 even when merging two v1.4 files #349
Comments
We are also facing similar issue. Is there any fix coming up soon? |
When can we expect the fix please ? |
I think the intended behavior is to produce SBOMs of the latest version. However, you can use "--output-version v1_4" to force it to produce an SBOM of version 1.4. |
Hello @andreas-hilti , We are encountering an issue with the CycloneDX merge command. When merging two SBOMs with spec version v1.4, the resulting SBOM is in spec version v1.5. Is this the expected behavior of the merge command? Additionally, it appears that the merge command does not support an |
Yes, you are right, it is currently not supported. You can review: What you can do already now is this (merge followed by convert):
|
With release 0.26.0 you can now specify the output format version using |
Merging SBOMs seems to default to the output file being version 1.5, regardless of the input file versions. See for example
test1.txt
andtest2.txt
attached. Both v1.4, created with thesnyk sbom
CLI command.Command used to merge them is:
cyclonedx merge --input-files test1.txt test2.txt --output-file new.txt --input-format json --output-format json --name "Test" --version "v0.0"
The output SBOM
new.txt
is v1.5 (also attached):new.txt
test1.txt
test2.txt
The text was updated successfully, but these errors were encountered: