Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
The generated CycloneDX SBOM may not be able to be parsed by tools, as it generates duplicate dependencies.
Expected Behavior
A CycloneDX v1.5 SBOM generated from a repository can be parsed correctly.
Steps To Reproduce
- Clone https://gitlab.com/tanna.dev/renovate-graph
- Run
npm sbom --sbom-format cyclonedx > cyclonedx.json
- Run through an Cyclone validator i.e.
go run github.com/CycloneDX/sbom-utility@latest validate --input-file cyclonedx.json
renovate-graph.cyclonedx.json
Environment
- npm: 10.2.3
- Node.js: v18.17.1
- OS Name: Linux
- System Model Name:
- npm config:
; "user" config from /home/jamie/.npmrc
//registry.npmjs.org/:_authToken = (protected)
; node bin location = /usr/bin/node
; node version = v18.17.1
; npm local prefix = /home/jamie/workspaces/renovate-graph
; npm version = 10.2.3
; cwd = /home/jamie/workspaces/renovate-graph
; HOME = /home/jamie
; Run `npm config ls -l` to show all defaults.
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
The generated CycloneDX SBOM may not be able to be parsed by tools, as it generates duplicate dependencies.
Expected Behavior
A CycloneDX v1.5 SBOM generated from a repository can be parsed correctly.
Steps To Reproduce
npm sbom --sbom-format cyclonedx > cyclonedx.jsongo run github.com/CycloneDX/sbom-utility@latest validate --input-file cyclonedx.jsonrenovate-graph.cyclonedx.json
Environment