Error while using the github action

326 views
Skip to first unread message

Ibrahima Gaye Coulibaly

unread,
Mar 23, 2022, 5:49:19 AM3/23/22
to OWASP ZAP User Group
Hi.
I have this error while using the Github action.

Validation Failed: {"message":"The listed users and repositories cannot be searched either because the resources do not exist or you do not have permission to view them.","resource":"Search","field":"q","code":"invalid"}

This is my configuration


- name: ZAP Scan


if: always()


id: zapScan


uses: zaproxy/action-baseline@master


with:


token: ${{ secrets.GITHUB_TOKEN }}


docker_name: "owasp/zap2docker-stable"


target: ${{ secrets.WEB_HOST }}
  

Viraj Madhawa

unread,
Nov 1, 2023, 3:33:03 AM11/1/23
to ZAP User Group
Hi Gaye,

I faced the same issue on workflow. 
Problem is we have to set permissions for our github token. So adding permissions solved it for me. Add below lines to your job block in workflow file.

permissions:
contents: read
issues: write

Hope this Helps you. 

Cheers,
Viraj
Reply all
Reply to author
Forward
0 new messages