Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OWASP DC 8.0.2 cli failure on node app due to Python Analyzer finding node module using poetry #5464

Closed
brandon-pangilinan opened this issue Feb 17, 2023 · 2 comments · Fixed by #5470
Labels

Comments

@brandon-pangilinan
Copy link

Describe the bug
OWASP CLI scanner fails when scanning a node app when the python analyzer finds a node module using a pyproject.toml file.

Version of dependency-check used
The problem occurs using version 8.0.2 of the CLI.

Log file
OWASP DC 8.0.2 Fail

To Reproduce
Steps to reproduce the behavior:

  1. Run OWASP CLI on node based app with node_gyp as a module
  2. See error

Expected behavior
Pipeline shows that OWASP scan failed with exit code 14, and that a pyproject.toml was found, but no requirements.txt or poetry.lock file.

Additional context
Add any other context about the problem here.

@mprins
Copy link
Contributor

mprins commented Feb 17, 2023

does it fail with the current release? which is 8.1.0

please see #4995 and #5409

@jeremylong
Copy link
Owner

Thanks for the report - I agree we should not throw the error if the pyproject.toml is in the node_modules directory.

Additionally, as you are scanning a node application I would highly recommend adding --retirejsFilterNonVulnerable to reduce the overall size of the report and scan time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants