-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
No results when scanning a hierachical CycloneDX file from cyclonedx-cli #129
Comments
@Feelemoon Can you provide a sample JSON file? |
Sure, here is an example showing the structure:
|
@Feelemoon if you could provide a full example, that would be awesome. Otherwise, can you check the output with the latest release of Additionally, which provider do you happen to be using? |
I've tried to upgrade to 0.4.2 but it does not run on my machine (#145). 0.4.1 does not report anything. |
@Feelemoon can you try with v0.4.4 |
@djschleen I've re-run it with v0.4.4 and it does not find any packages:
|
@Feelemoon Dang... good news is you can run it now so the cgo flag must be working. Strange that it's not finding a package. Would it be possible to get a full sbom in the format you are looking at? |
Please roll your own with |
Trying this:
|
Based on the previous command I posted, it generated this file: https://github.com/devops-kung-fu/bomber/blob/refactor/_TESTDATA_/sbom/merged.json There must be a formatting issue with the generated merged file because it will not unmarshal into the CycloneDX provided structs. I tried changing to the CycloneDX provided BOMDecoder but there was no difference. Good thing, is that the CycloneDX decoder will probably help process 1.5 spec in the future. I'm going to close this for a few reasons... a) The merged file won't unmarshal, whereas each SBOM merged into it will unmarshal independently, and b) It's a bit of an anti-pattern to combine SBOMs as you tend to lose provenance. |
When scanning a hierachical CycloneDX JSON file generated with
cyclonedx-cli merge --hierachical [...]
(https://github.com/CycloneDX/cyclonedx-cli) sbomer produces no output, although components are present (and sbombed when scanning the files before merge).The text was updated successfully, but these errors were encountered: