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

18 views
Skip to first unread message

Salam Elias

unread,
Nov 6, 2025, 9:45:31 AMNov 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

Simon Bennetts

unread,
Nov 7, 2025, 12:17:21 PMNov 7
to ZAP User Group
Hiya,

The "-v ${pwd}:/zap/wrk/:rw" part of the command you are running maps your current working directory (CWD) to /zap/wrk
This is a docker thing, so not ZAP specific.

If you put your ProgressFile.txt in your CWD then it will be accessible in the container at /zap/wrk/ProgressFile.txt
The whole directory is mapped, so if you put a file in a "dir" subdirectory then in the container it will be in /zap/wrk/dir

Cheers,

Simon
Reply all
Reply to author
Forward
0 new messages