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

Invalid sbom json #363

Closed
ObraztsovOleg opened this issue Apr 16, 2024 · 3 comments
Closed

Invalid sbom json #363

ObraztsovOleg opened this issue Apr 16, 2024 · 3 comments

Comments

@ObraztsovOleg
Copy link

When I merge two sboms:

  1. sbom.json
    { "bomFormat": "CycloneDX", "specVersion": "1.4", "serialNumber": "urn:uuid:5c3bf41b-655c-47e1-9a10-867f270bb393", "version": 1, "metadata": { "timestamp": "2024-04-16T08:41:32.770Z", "tools": [ { "vendor": "cyclonedx", "name": "cdxgen", "version": "8.6.2" } ], "authors": [ { "name": "Prabhu Subramanian", "email": "[email protected]" } ] }, "components": [], "services": [], "dependencies": [] }

  2. sbom.json
    { "bomFormat": "CycloneDX", "specVersion": "1.4", "serialNumber": "urn:uuid:af178b8a-e4a8-47f7-b36f-40b789da47b8", "version": 1, "metadata": { "timestamp": "2024-04-16T08:41:32.770Z", "tools": [ { "vendor": "cyclonedx", "name": "cdxgen", "version": "8.6.2" } ], "authors": [ { "name": "Prabhu Subramanian", "email": "[email protected]" } ] }, "components": [], "services": [], "dependencies": [] }

I got invalid output sbom.json:
{ "bomFormat": "CycloneDX", "specVersion": "1.5", "serialNumber": "urn:uuid:ba2b30f1-be8f-44c9-aa02-fc53f28c2a1f", "version": 1, "metadata": { "tools": [ { "vendor": "cyclonedx", "name": "cdxgen", "version": "8.6.2" } ], "component": { "type": "application", "group": "sbt_PROD.CI90000027_digs", "name": "digs", "version": "5.21.4-1416" } }, "components": [], "services": [], "dependencies": [] }ncies": [] }

@ertl
Copy link

ertl commented Apr 19, 2024

+1

@andreas-hilti
Copy link
Contributor

@ObraztsovOleg Could it be that the sbom.json existed and you tried to overwrite it?
If this is the case, then it would be a duplicate of #255.

@mtsfoni
Copy link
Contributor

mtsfoni commented May 31, 2024

"dependencies": [] }ncies": [] }

Looks strongly like #255.

If you still encounter the issue in the newest version, please feel free to reopen this issue or create a new one.

@mtsfoni mtsfoni closed this as completed May 31, 2024
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

4 participants