You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have approximately a hundred SBOM files generated by cyclonedx maven plugin from particular versions of sources (a dozen top-level delivered services and their dependencies, ours and eventually third-party), and want to merge them into one "SBOM of a release" so we know if a particular release bundle was impacted by some vulnerabilities.
This fails however, and I have hard time guessing what to debug or fix looking at such a report (same for JSON and XML inputs):
:; ../../cyclonedx-win-x64-v0.24.2.exe merge \
--output-file "../SBOM-java.json" \
--group "com.project" \
--name "Project-Release-Patch" \
--version "cloud2022.11.0" \
--input-files CycloneDX-Sbom-*.json \
--hierarchical
...
Processing input file CycloneDX-Sbom-tpb-parent-2.5.0.json
Contains 176 components
Unhandled exception: System.ArgumentNullException: Value cannot be null. (Parameter 'collection')
at System.Collections.Generic.List`1.InsertRange(Int32 , IEnumerable`1 )
at CycloneDX.Utils.CycloneDXUtils.HierarchicalMerge(IEnumerable`1 boms, Component bomSubject)
at CycloneDX.Cli.Commands.MergeCommand.Merge(MergeCommandOptions options)
at System.CommandLine.Invocation.CommandHandler.GetExitCodeAsync(Object value, InvocationContext context)
at System.CommandLine.Invocation.ModelBindingCommandHandler.InvokeAsync(InvocationContext context)
at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass23_0.<<UseParseErrorReporting>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass27_0.<<UseVersionOption>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass25_0.<<UseTypoCorrections>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__24_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass22_0.<<UseParseDirective>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass11_0.<<UseDebugDirective>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<RegisterWithDotnetSuggest>b__10_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass14_0.<<UseExceptionHandler>b__0>d.MoveNext()
...I can only guess that one of the "original SBOMs" may lack or seem to duplicate some information which confuses an enumerator here, but nave no idea what needle to trawl for in 50Mb of text across hundreds of files.
If not, you could try the following instead of merging all hundred SBOMs at once:
Try merging only the first two SBOMs. If this is successful try merging the first three SBOMs, etc.
This could at least help to identify which SBOM is problematic and maybe give some hints on which part of it is problematic.
I have approximately a hundred SBOM files generated by cyclonedx maven plugin from particular versions of sources (a dozen top-level delivered services and their dependencies, ours and eventually third-party), and want to merge them into one "SBOM of a release" so we know if a particular release bundle was impacted by some vulnerabilities.
This fails however, and I have hard time guessing what to debug or fix looking at such a report (same for JSON and XML inputs):
...I can only guess that one of the "original SBOMs" may lack or seem to duplicate some information which confuses an enumerator here, but nave no idea what needle to trawl for in 50Mb of text across hundreds of files.
Without the
--hierarchical
flag it succeeds with...but the flat structure loses the dependency info and lacks usable points in metadata/component info, in particular (#179 (comment))
The text was updated successfully, but these errors were encountered: