Closed liuhe-trec closed 1 year ago
DependencyCheck does not "support" any CI/build environment, it would be the other way around... the CI/build environment supporting running dependencycheck as part of the build.
That said....
it should be perfectly feasible and supported in Google Cloud builds to run it and is especially not expected to fail at the report writing phase (unless you misconfigure output locations).
Try to find the actual error it encounters... because your quoted log ends with 'error generating report for' which is not helpful to dig down why it fails.
Best place to start would be the debug-logs inside /workspace/dependency-check.log
that should've been created in your cloud build workspace as you supplied the -l
argument to have debug-log created in that logfile.
Note: I've never worked with google cloud builds, so can't help you on how to obtain and/or save contents from your workspace for further inspection.
If /workspace/dependency-check.log
cannot be found than the likely root cause would be that google cloud builds require you to produce output somewhere else than in the workspace/
folder.
thank you @aikebah
It was my fault. The owasp/dependency-check image couldn't be directly used in Google Cloud Build. So, I created a new image, and now it works. It is able to generate the reports.
Hi, I want to integrate it into my CI pipeline by Google Cloud Build
error like this
so i dont know why, and how to do next? please help me!