When a package-lock.json has a license with a list, the package-lock is skipped #10190
Closed
jtorres-sia-es
started this conversation in
Bugs
Replies: 1 comment
-
|
Duplicate of #10119 |
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
Uh oh!
There was an error while loading. Please reload this page.
-
Description
The error message:
Walk error file_path="package-lock.json" err="parse error: failed to parse package-lock.json: decode error: json: cannot unmarshal JSON array into Go string within "/packages/node_modules~1pause-stream/license""
When the package-lock.json has this dependency with a list of licenses:
"node_modules/pause-stream": {
"version": "0.0.11",
"resolved": "https://registry.npmjs.org/pause-stream/-/pause-stream-0.0.11.tgz",
"integrity": "sha512-e3FBlXLmN/D1S+zHzanP4E/4Z60oFAa3O051qt1pxa7DEJWKAyil6upYVXCWadEnuoqa4Pkc9oUx9zsxYeRv8A==",
"license": [
"MIT",
"Apache2"
],
"dependencies": {
"through": "~2.3"
}
},
Desired Behavior
The package-lock.json is processed.
Actual Behavior
The package-lock.json is not processed, and therefore no dependencies with known vulnerabilities are reported.
Reproduction Steps
Target
None
Scanner
Vulnerability
Output Format
None
Mode
None
Debug Output
Operating System
Linux
Version
Checklist
trivy clean --allBeta Was this translation helpful? Give feedback.
All reactions