Replies: 1 comment
-
Hello @ssmirr Created #5835 for this task. Regards, Dmitriy |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
when generating SBOM (
trivy fs --format spdx-json --output sbom.spdx.json .
) using the fs scanner, Trivy is not reporting license for NPM dependencies that has a scoped name (for example@sinonjs/commons
which defines license in both package.json as well as a separate LICENSE file). In contrast, Trivy does report license for an NPM dependency if the name is not scoped (for exampleuuid
).In the logs, Trivy also shows:
Here is a complete output for an example of scoped vs unscoped NPM dependency:
Please note that NPM dependencies are already downloaded locally (with
npm install
, innode_modules/
).Desired Behavior
Trivy should be able to detect license information for scoped NPM packages similar to how it detects it for unscoped ones.
Actual Behavior
Trivy is not able to detect license information for scoped NPM packages.
Reproduction Steps
git clone https://github.com/serverless/serverless
cd serverless && npm install
trivy fs --format spdx-json --output sbom.spdx.json .
sbom.spdx.json
file, search for@serverless/dashboard-plugin
and compare it to what you find when searching forajv-formats
Target
SBOM
Scanner
None
Output Format
SPDX
Mode
Standalone
Debug Output
Operating System
macOS Sonoma
Version
Checklist
trivy image --reset
Beta Was this translation helpful? Give feedback.
All reactions