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

cyclonedx merge defaults to specVersion 1.5 even when merging two v1.4 files #349

Open
aja08379 opened this issue Nov 6, 2023 · 2 comments

Comments

@aja08379
Copy link

aja08379 commented Nov 6, 2023

Merging SBOMs seems to default to the output file being version 1.5, regardless of the input file versions. See for example test1.txt and test2.txt attached. Both v1.4, created with the snyk 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):

user@ubuntu2004:~$ cat test1.txt | jq
{
  "$schema": "http://cyclonedx.org/schema/bom-1.4.schema.json",
  "bomFormat": "CycloneDX",
  "specVersion": "1.4",
user@ubuntu2004:~$ cat test2.txt | jq
{
  "$schema": "http://cyclonedx.org/schema/bom-1.4.schema.json",
  "bomFormat": "CycloneDX",
  "specVersion": "1.4",
ash@ubuntu2004:~$ cat new.txt | jq
{
  "bomFormat": "CycloneDX",
  "specVersion": "1.5",

new.txt
test1.txt
test2.txt

@aja08379 aja08379 changed the title cyclonedx merge defaults to specVersion 1.5 even when merging two v1.4 filesls -la cyclonedx merge defaults to specVersion 1.5 even when merging two v1.4 files Nov 6, 2023
@aja08379 aja08379 closed this as completed Nov 6, 2023
@aja08379 aja08379 reopened this Nov 6, 2023
@Parisha7
Copy link

Parisha7 commented Dec 4, 2023

We are also facing similar issue. Is there any fix coming up soon?

@saloni410
Copy link

When can we expect the fix please ?

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

No branches or pull requests

3 participants