Hello,
I'm trying to run a ZAP scan in my Azure Devops pipeline against a version of my site that I spin up at localhost:8000 using the npm package start-server-and-test. My docker commands look like this:
docker pull softwaresecurityproject/zap-stable
docker run -v $(pwd):/zap/wrk/:rw -t softwaresecurityproject/zap-stable zap-baseline.py -t http://$(ip -f inet -o addr show bridge0 | awk '{print $4}' | cut -d '/' -f 1):8000 -x xml_report.xml -I
But when I run it I get the following errors:
Device "docker0" does not exist.
Using the Automation Framework
Automation plan failures:
Job spider failed to access URL http://:8000 : java.lang.IllegalArgumentException: Host name must not be empty
Can anyone help me?