Hi, I successfully run ZAP task inside Azure Devops release pipeline and test against my web server with the following
docker run --rm -v ${pwd}:/zap/wrk/:rw -t zaproxy/zap-stable zap-full-scan.py -t
https://mywebsite.fr -I -g gen.conf -x OWASP-ZAP-Report.xml -r scan-report.html
I understood that we can use a Progress file to avoid exisiting warning messages so I created a progress file in the repo and add the following parameter to the command
$profilePathPath = "$Env:SYSTEM_DEFAULTWORKINGDIRECTORY)/_OWASP-ZAP-Security-Tests/ProgressFile.txt"
docker run --rm -v ${pwd}:/zap/wrk/:rw -t zaproxy/zap-stable zap-full-scan.py -t
https://mywebsite.fr -I -g gen.conf -p $profilePathPath -x OWASP-ZAP-Report.xml -r scan-report.html
but I get the following error
No such file or directory: '/zap/wrk/C:\\Projects\\agent-AzureDevOps2K20-217\\vsts-agent-win-x64-2.217.2\\_work\\r4\\a)/_OWASP-ZAP-Security-Tests/ProgressFile.txt'
So I understand that this progress file should be copied to /zap/wrk/
Am I correct? If yes, how this can be done? Thanks in advance