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

fix(npm): do not detect package-lock.json in node_modules as an app #4948

Closed
nikpivkin opened this issue Aug 4, 2023 · 0 comments · Fixed by #4949
Closed

fix(npm): do not detect package-lock.json in node_modules as an app #4948

nikpivkin opened this issue Aug 4, 2023 · 0 comments · Fixed by #4949
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.
Milestone

Comments

@nikpivkin
Copy link
Contributor

Prepare env:

npm init -y
npm add [email protected]
npm add [email protected]

Run Trivy:

trivy fs --list-all-pkgs -f json -o report.json .

Trivy detects package-lock.json in node_modules as applications:

cat report.json | jq '.Results[] | .Target'
"node_modules/combined-stream/yarn.lock"
"node_modules/form-data/yarn.lock"
"node_modules/html2canvas/node_modules/css-line-break/package-lock.json"
"node_modules/html2canvas/package-lock.json"
"node_modules/uri-js/yarn.lock"
"package-lock.json"
@nikpivkin nikpivkin added the kind/bug Categorizes issue or PR as related to a bug. label Aug 4, 2023
@nikpivkin nikpivkin self-assigned this Aug 4, 2023
@knqyf263 knqyf263 added this to the v0.44.1 milestone Aug 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants