You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The newly released dependency check docker image was unable to locate the node_modules folder, while the previous image works.
The problem is the same as mentioned by another user, #5116 (comment).
Version of dependency-check used
The problem occurs using version 7.4.0, running with docker commands that was published in Docker Hub. The script file used is exactly the same as previous successful runs.
Log file
With image tag 7.4.0,
[INFO] Analysis Started
[INFO] Finished File Name Analyzer (0 seconds)
[WARN] Unable to find node module: /src/node_modules/@ampproject/remapping/node_modules/@jridgewell/gen-mapping/package.json
[WARN] Unable to find node module: /src/node_modules/@ampproject/remapping/node_modules/@jridgewell/trace-mapping/package.json
To Reproduce
Try to run the docker image to scan a NodeJS project with the script published in Docker Hub.
Create a NodeJS module. The NodeJS and npm version shouldn't matter, but just in case, we try with a react app that is created with NodeJS 18.12.1 , npm v8 .
I tried with the docker image owasp/dependency-check:7.4.1 , same steps as above. The same issues persist. I'm not sure about the effect of the line in commit 8c9b6a1 , would you have an idea to share?
Logs generated:
[INFO] Analysis Started
[INFO] Finished File Name Analyzer (0 seconds)
[WARN] Unable to find node module: /src/node_modules/@ampproject/remapping/node_modules/@jridgewell/gen-mapping/package.json
[WARN] Unable to find node module: /src/node_modules/@ampproject/remapping/node_modules/@jridgewell/trace-mapping/package.json
[WARN] Unable to find node module: /src/node_modules/@babel/code-frame/node_modules/@babel/highlight/package.json
Describe the bug
The newly released dependency check docker image was unable to locate the
node_modules
folder, while the previous image works.The problem is the same as mentioned by another user, #5116 (comment).
Version of dependency-check used
The problem occurs using version 7.4.0, running with docker commands that was published in Docker Hub. The script file used is exactly the same as previous successful runs.
Log file
With image tag 7.4.0,
Run with image tag 7.3.2,
To Reproduce
Try to run the docker image to scan a NodeJS project with the script published in Docker Hub.
./bin/owasp-dependency-check-docker
.Expected behavior
It should pass the
node_modules
resolution phase and start Node.js Package Analyzer.Additional context
NA
The text was updated successfully, but these errors were encountered: