Large discrepancies in number of components between "cyclonedx/bom v3.10.6" and "cyclonedx/cyclonedx-npm v1.6.0" #374
-
Hello, Environment information:
This is more of a "general knowledge question", as I am trying to conclude to which cyclonedx module/version generates the most representative results. I am sorry in advance if this is not the right place to be asking it. My use case is that I need to generate bom.xml files for some angular projects and then send them to Dependency Track platform for analysis. Up until version 3 of
The bom.xml that was generated in the way above, outputs 430 Components in Dependency Track. However I understand that major version 4 release of
The bom.xml file that was generated in the way above, outputs 170 Components in Dependency Track. Both tests were obviously ran for the exact same project. So my question is, why is there such a large discrepancy in the final number of Components, for the same project, between Thank you in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
the sort answer: The long answer: |
Beta Was this translation helpful? Give feedback.
the sort answer:
@cyclonedx/bom
had issues detecting all the dependencies, so some were not in the SBOM result.The long answer:
@cyclonedx/cyclonedx-npm
not only finds ALL the dependencies, but it also does not run artificial component deduplication. The reasons are described here and are discussed here and here ... and there.