How copy Progress File to zaproxy/zap-stable container when issuing a run command

5 views
Skip to first unread message

Salam Elias

unread,
Nov 6, 2025, 9:45:31 AM (16 hours ago) Nov 6
to ZAP User Group
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
Reply all
Reply to author
Forward
0 new messages