-
Notifications
You must be signed in to change notification settings - Fork 35
Description
Describe the bug
Due to issues with maven and ossindex, I have tried to disable it in the additional arguments:
additionalArguments: '--exclude /.nuget/ --disableOssIndex)'
This does not work and causes the pipeline to fail with "Unrecognized option: --disableOssIndex"
Searching for left over lock files...
found no left over lock files, continuing...
/home/vsts/work/_tasks/dependency-check-build-task_47ea1f4a-57ba-414a-b12e-c44f42765e72/6.3.0/dependency-check/bin/dependency-check.sh --project XXXXXX --out /home/vsts/work/1/TestResults/dependency-check/XXXXXX-dependency-check-report.html --scan /home/vsts/work/1/s/XXXXX --format HTML --failOnCVSS 11 --log /home/vsts/work/1/TestResults/dependency-check/log --nvdApiKey XXXXXXXX --exclude /.nuget/ --data /home/vsts/work/1/nvd-data --disableOssIndex)
Unrecognized option: --disableOssIndex)
To Reproduce
Add --disableOssIndex to your additionalArguments
Expected behavior
Dependency Check work
Logs
Searching for left over lock files...
found no left over lock files, continuing...
/home/vsts/work/_tasks/dependency-check-build-task_47ea1f4a-57ba-414a-b12e-c44f42765e72/6.3.0/dependency-check/bin/dependency-check.sh --project XXXXXX --out /home/vsts/work/1/TestResults/dependency-check/XXXXXX-dependency-check-report.html --scan /home/vsts/work/1/s/XXXXX --format HTML --failOnCVSS 11 --log /home/vsts/work/1/TestResults/dependency-check/log --nvdApiKey XXXXXXXX --exclude /.nuget/ --data /home/vsts/work/1/nvd-data --disableOssIndex)
Unrecognized option: --disableOssIndex)