Not working with Cloudbuild Ci
See original GitHub issueDescribe the bug
Hello, every time I try to launch it with Cloudbuild CI, i get an error. It says me that zap fails to start Output of the CI : Status: Downloaded newer image for owasp/zap2docker-stable:latest docker.io/owasp/zap2docker-stable:latest 2022-11-16 16:00:26,640 Trigger hook: cli_opts, args: 1 2022-11-16 16:00:26,641 Using port: 53775 2022-11-16 16:00:26,641 Trigger hook: start_zap, args: 2 2022-11-16 16:00:26,641 Starting ZAP 2022-11-16 16:00:26,641 Failed to start ZAP 😦 ERROR ERROR: build step 0 “owasp/zap2docker-stable” failed: step exited with non-zero status: 3
Steps to reproduce the behavior
Step of the Ci I used (replaced the url with those of google to don’t display my company website url :
- name: 'owasp/zap2docker-stable'
id: ci-zaproxy
args: ['zap-full-scan.py', '-t', 'https://www.google.com', '-d']
Expected behavior
It should work the same manner as it works when i launch it with docker on my computer but actually, it doesn’t and so, we can’t launch zaproxy on our CIs
Software versions
I use the latest version of zap of owasp/zap2docker-stable
Screenshots
No response
Errors from the zap.log file
No response
Additional context
No response
Would you like to help fix this issue?
- Yes
Issue Analytics
- State:
- Created 10 months ago
- Comments:9 (5 by maintainers)
Top GitHub Comments
Might be the same as #7556. Try run ZAP directly and see what the error is. Also worth checking that Docker is up-to-date in your CI infrastructure.
You still need to provide the
-cmd
or-daemon
. Could you try again with thezap-full-scan.py
?Those scripts just start ZAP, you would have to use the Automation Framework or other custom scripts to control ZAP.