DependencyCheck
DependencyCheck copied to clipboard
Dev dependency exclusion is not working properly
trafficstars
Hi,
Even though we scan our JavaScript repository dependencies, excluding dev dependencies, vulnerabilities in dev dependencies are still being reported. We utilize the following configurations in GitHub Actions.
- name: Generate dependency vulnerability list
continue-on-error: true
uses: dependency-check/Dependency-Check_Action@main
id: depcheck
with:
project: 'Project Name'
path: '.'
format: 'ALL'
args: >
--nodeAuditSkipDevDependencies
Thanks.
+up
Please see the documentation: https://jeremylong.github.io/DependencyCheck/dependency-check-cli/arguments.html
There are two analyzers that deal with nodeJS. So try:
--nodePackageSkipDevDependencies
Or even:
--disableNodeJS
I might go with the later as the package analyzer needs to be re-written or thrown away.