question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Not working with Cloudbuild Ci

See original GitHub issue

Describe 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:open
  • Created 10 months ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
thc202commented, Nov 16, 2022

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.

0reactions
thc202commented, Nov 24, 2022

You still need to provide the -cmd or -daemon. Could you try again with the zap-full-scan.py?

With these scripts, can we launch zaproxy scan ?

Those scripts just start ZAP, you would have to use the Automation Framework or other custom scripts to control ZAP.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting build errors | Cloud Build Documentation
Build triggers use the Cloud Build service account to create a build. The error above indicates that the Cloud Build service account is...
Read more >
CI/CD integration problem when using google-cloud-build ...
I am positive that my Dockerfile and application code are working properly since I've previously submitted the build on Container registry using ...
Read more >
CI/CD pipeline with Cloud Build and Cloud Run.
CI/CD with Cloud Run & Cloud Build. Cloud Run is a fully managed computing ... Identity-Aware Proxy (IAP) does not work with Cloud...
Read more >
Cloud Build - Building and Configuring CI/CD pipelines on ...
In this course, you will learn the skills required for building CI/CD pipelines using tools such as Google Cloud Build, Google Container Registry,...
Read more >
Integrating Google Cloud Build | CI/CD - Pulumi
If you do not grant the necessary permissions to the Cloud Build service account, you may see an error like this while deploying...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found