-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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) Exclude dev dependencies from npm's package-lock.json and Fix Java DB download endpoint #1893
Conversation
NPM v1 Compared results among three binaries
Summary line:
Appeared in "master" result
Not in "new" result
|
NPM v2
"babel/core" from dev deps https://github.com/vulsio/integration/blob/b4cb452761ce17b6c2852e2be89221c15378e3c2/data/lockfile/npm-v2/package-lock.json#L100-L104 "master"
|
NPM v3 0.24.9 does not support v3 format
"@typescript-eslint/eslint-plugin" from dev deps https://github.com/vulsio/integration/blob/b4cb452761ce17b6c2852e2be89221c15378e3c2/data/lockfile/npm-v3/package-lock.json#L3283-L3287 "master"
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that you need to change npm to npm-v1, npm-v2, or npm-v3.
:100644 100644 065fe8a 0000000 M GNUmakefile
diff --git a/GNUmakefile b/GNUmakefile
index 065fe8a..83e021a 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -90,7 +90,7 @@ NOW=$(shell date '+%Y-%m-%dT%H-%M-%S%z')
NOW_JSON_DIR := '${BASE_DIR}/$(NOW)'
ONE_SEC_AFTER=$(shell date -d '+1 second' '+%Y-%m-%dT%H-%M-%S%z')
ONE_SEC_AFTER_JSON_DIR := '${BASE_DIR}/$(ONE_SEC_AFTER)'
-LIBS := 'bundler' 'dart' 'elixir' 'pip' 'pipenv' 'poetry' 'composer' 'npm' 'yarn' 'pnpm' 'cargo' 'gomod' 'gosum' 'gobinary' 'jar' 'jar-wrong-name-log4j-core' 'war' 'pom' 'gradle' 'nuget-lock' 'nuget-config' 'dotnet-deps' 'dotnet-package-props' 'conan' 'swift-cocoapods' 'swift-swift' 'rust-binary'
+LIBS := 'bundler' 'dart' 'elixir' 'pip' 'pipenv' 'poetry' 'composer' 'npm-v1' 'npm-v2' 'npm-v3' 'yarn' 'pnpm' 'cargo' 'gomod' 'gosum' 'gobinary' 'jar' 'jar-wrong-name-log4j-core' 'war' 'pom' 'gradle' 'nuget-lock' 'nuget-config' 'dotnet-deps' 'dotnet-package-props' 'conan' 'swift-cocoapods' 'swift-swift' 'rust-binary'
diff:
# git clone git@github.com:vulsio/vulsctl.git
@MaineK00n I encountered error in Java DB download
I, for now, included the fix commit in this PR e0a076b. |
What did you implement:
At 0.25.1, there is regression of npm's package-lock.json scan where dev dependencies are included in library list.
This PR fixes it.
Trivy of 0.50 has dev dependencies excluding feature of three types;
Realistically, only effect is npm.
Type of change
How Has This Been Tested?
Manually.
Results will be added as comments.
Checklist:
You don't have to satisfy all of the following.
make fmt
make test
Reference