We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb4dae2 commit 0b31a9dCopy full SHA for 0b31a9d
1 file changed
.github/workflows/zap-api-scan.yaml
@@ -0,0 +1,29 @@
1
+name: ZAP API scan
2
+
3
+on:
4
+ workflow_call:
5
+ inputs:
6
+ service_apispec_url:
7
+ type: string
8
+ required: true
9
+ secrets:
10
+ ACTIONS_TOKEN:
11
12
13
+jobs:
14
+ zap_scan:
15
+ runs-on: [self-hosted, common]
16
+ name: Scan the webapplication
17
+ steps:
18
+ - name: Checkout
19
+ uses: actions/checkout@v4
20
21
+ - name: ZAP Scan
22
+ uses: zaproxy/action-api-scan@v0.7.0
23
+ with:
24
+ token: ${{ secrets.ACTIONS_TOKEN }}
25
+ docker_name: 'ghcr.io/zaproxy/zaproxy:stable'
26
+ format: openapi
27
+ target: '${{ inputs.service_apispec_url }}'
28
+ fail_action: true
29
+ allow_issue_writing: false
0 commit comments