-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (34 loc) · 1 KB
/
zap-api-scan.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Run ZAP API Scan
on:
workflow_dispatch:
inputs:
api_url:
type: string
description: The base URL of the API to scan
default: https://dev.strdata.gov.bc.ca/api
spec_url:
type: string
description: The URL of the OpenAPI/GraphQL spec
default: https://dev.strdata.gov.bc.ca/api/swagger/strdata/swagger.json
jobs:
zap-api-scan:
runs-on: ubuntu-22.04
timeout-minutes: 30
permissions:
contents: read
issues: write
steps:
- uses: actions/checkout@v3
- name: ZAP API Scan
uses: zaproxy/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
api_url: ${{ github.event.inputs.api_url }}
openapi: ${{ github.event.inputs.spec_url }}
rules_file_name: '.zap/rules.tsv'
context_file: '.zap/context.context'
- name: Upload ZAP Scan Report
uses: actions/upload-artifact@v3
with:
name: zap-api-scan-report
path: zap_api_scan_report.html