Replies: 2 comments 3 replies
-
@malice00, it looks like a shortcut I may have taken a while ago to get things working. Required only should filter both the components and dependencies list. Do you happen to have a test project to reproduce this issue? |
Beta Was this translation helpful? Give feedback.
-
This issue also applies for JS/TS projects with npm packages. If "--required-only" is set, no dependencies and no devDependencies will be contained in the sbom file. This scope property should somehow be considered when you do the following in the index.js: |
Beta Was this translation helpful? Give feedback.
-
I was working on some issues, when I found the following pieces of code:
cdxgen/index.js
Line 953 in c3c1d95
and
cdxgen/index.js
Lines 1230 to 1236 in c3c1d95
With some testing, it indeed seems that when I run cdxgen with
--required-only
, no dependencies are added to the SBOM, so no dependency-tree will be available in tools like dependency-track...Is this intentional? If so, what is the reason to not generate the dependencies?
I have to admit, for my project it doesn't matter if I use
--required-only
or not, but I would prefer it to work the same either way.Beta Was this translation helpful? Give feedback.
All reactions