Permission denied writing report

37 views
Skip to first unread message

Sebastian Bahler

unread,
Nov 1, 2024, 6:47:46 PMNov 1
to ZAP User Group
Hi, I'm using zaproxy/action-...@v0.5.0 as follow as part of my test workflow on github

- name: Run ZAP API Scan
  uses: zaproxy/action-...@v0.5.0
  with:
    target: openapi-docs.json
    format: openapi

And I get

/usr/bin/touch report_json.json report_md.md report_html.html
/usr/bin/touch: cannot touch 'report_json.json': Permission denied
/usr/bin/touch: cannot touch 'report_md.md': Permission denied
/usr/bin/touch: cannot touch 'report_html.html': Permission denied
Error: The process '/usr/bin/touch' failed with exit code 1


Here is the full output for the zap scan step


Run zaproxy/action-...@v0.5.0
  with:
    target: openapi-docs.json
    format: openapi
    token: ***
    docker_name: ghcr.io/zaproxy/zaproxy:stable
    issue_title: ZAP API Scan Report
    fail_action: false
    allow_issue_writing: true
    artifact_name: zap_scan
  env:
    ZAP_AUTH_HEADER: Authorization
    ZAP_AUTH_HEADER_VALUE: ***
starting the program
github run id :11636495418
/usr/bin/touch report_json.json report_md.md report_html.html
/usr/bin/touch: cannot touch 'report_json.json': Permission denied
/usr/bin/touch: cannot touch 'report_md.md': Permission denied
/usr/bin/touch: cannot touch 'report_html.html': Permission denied
Error: The process '/usr/bin/touch' failed with exit code 1



Thanks!

thc...@gmail.com

unread,
Nov 4, 2024, 3:14:12 AMNov 4
to zaprox...@googlegroups.com
Hi,

It might make no difference but I'd suggest first update to latest
version of the action.

Best regards.

Sebastian Bahler

unread,
Nov 12, 2024, 5:06:05 PMNov 12
to ZAP User Group
Thank you very much, updating the version to the latest, fixed the issue.
I'm facing another issue now but I'll start a new thread

Thanks again!

Simon Bennetts

unread,
Nov 13, 2024, 8:30:27 AMNov 13
to ZAP User Group
Thanks for letting us know!
Reply all
Reply to author
Forward
0 new messages