Hi,I want to pass a swagger file to OWASP ZAP scan. The command am using to run is "docker run -v /home/zap:/zap/wrk/:rw -t owasp/zap2docker-stable zap-api-scan.py -t openapi.json -f openapi -a -w stage_out"
Where should the openapi.json file be located?I am getting error"docker run -v "$(pwd):/zap/wrk/:rw" -t owasp/zap2docker-stable zap-api-scan.py -t openapi.json -f openapi -a -w stage_out2021-08-26 10:52:00,096 Could not find custom hooks file at /home/zap/.zap_hooks.py
2021-08-26 10:52:00,096 Target must either start with 'http://' or 'https://' or be a local file
2021-08-26 10:52:00,096 File does not exist: /zap/wrk/openapi.json"
This is the swagger file. Anything I am missing?Also is there any other way to pass POST requests to ZAP using CLI?
Thanks
Yes. The file is in cwd only. Could you share a clear process of how to get this running?