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
Plugin dependencyCheckAggregate is trying to find package-lock.json during analysing. Logs as example:
Analyzing `/tmp/dctemp111af6e6-7dab-40bb-bea9-5e2b8d643644/check15967221622264312762tmp/154/package/aws-certificatemanager/lambda-packages/dns_validated_certificate_handler/package.json` - however, the node_modules directory does not exist. Please run `npm install` prior to running dependency-check
No lock file exists - this will result in false negatives; please run `npm install --package-lock`
Unable to find node module: /tmp/dctemp111af6e6-7dab-40bb-bea9-5e2b8d643644/check15967221622264312762tmp/154/package/node_modules/@aws-cdk/asset-awscli-v1/package.json
Run OWASP check or simply try to refresh Gradle dependencies
Observe error that the property doesn't exist
Expected behavior
I want to disable nodeAudit and yarn and don't see this error:
Caused by: org.owasp.dependencycheck.exception.ExceptionCollection: One or more exceptions occurred during analysis:
InitializationException: Unable to read yarn audit output.
caused by IOException: Cannot run program "yarn": error=2, No such file or directory
caused by IOException: error=2, No such file or directory
at org.owasp.dependencycheck.Engine.analyzeDependencies(Engine.java:693)
at org.owasp.dependencycheck.gradle.tasks.AbstractAnalyze.analyze(AbstractAnalyze.groovy:100)
... 128 more
Additional info
I think plugin trying to find package-lock.json because I have file cdk.json which I would like to ignore but don't know how.
Content of the cdk.json:
Describe the bug
Plugin dependencyCheckAggregate is trying to find package-lock.json during analysing. Logs as example:
But I have Java project and don't have this file. I want to disable nodeAudit for dependencyCheckAggregate and trying to follow instruction: https://jeremylong.github.io/DependencyCheck/dependency-check-gradle/configuration-aggregate.html
But plugin is not accepting nodeAudit property like that:
To Reproduce
Steps to reproduce the behavior:
nodeAudit
todependencyCheck
taskExpected behavior
I want to disable nodeAudit and yarn and don't see this error:
Additional info
I think plugin trying to find package-lock.json because I have file cdk.json which I would like to ignore but don't know how.
Content of the cdk.json:
The text was updated successfully, but these errors were encountered: