Skip to content

Commit 0b31a9d

Browse files
feat: add zap-api-scan workflow
1 parent fb4dae2 commit 0b31a9d

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
required: true
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

Comments
 (0)