ZAP Docker Full Scan not working using zap-fullscan.py script. Base line script working for it in stable image

Hi,
I am trying to full scan of my application using below command.

docker run -v $(pwd):/zap/wrk/:rw -t owasp/zap2docker-stable zap-full-scan.py -t https://site.com -c zap-casa-config.conf -x results-full.xml -n example.context -u username

This is throwing an error of permission denied.
ERROR [Errno 13] Permission denied: ‘/zap/wrk/testreport.html’
2023-01-19 12:23:28,685 I/O error: [Errno 13] Permission denied: ‘/zap/wrk/testreport.html’
Traceback (most recent call last):
File “/zap/zap-full-scan.py”, line 461, in main
write_report(os.path.join(base_dir, report_html), zap.core.htmlreport())
File “/zap/zap_common.py”, line 564, in write_report
with open(file_path, mode=‘wb’) as f:
PermissionError: [Errno 13] Permission denied: ‘/zap/wrk/testreport.html’
Found Java version 11.0.16
Available memory: 7909 MB
Using JVM args: -Xmx1977m

I am using stable version of ZAP Docker. when i try to run command with base line script it works and report is also generating on /zap/wrk/ directory. so i am sure it is not the permission issue of /zap/wrk/ directory because below command is working on same image.

docker run -v $(pwd):/zap/wrk/:rw -t owasp/zap2docker-stable zap-baseline.py -t https://site.com -c zap-casa-config.conf -r /zap/wrk/testreport.html

Temporary, I got the solution by changing the docker image stable to weekly. version. Now, report and scanning everything is working fine for me.