File tree Expand file tree Collapse file tree 1 file changed +13
-19
lines changed Expand file tree Collapse file tree 1 file changed +13
-19
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,6 @@ name: Run ZAP API Scan
3
3
on :
4
4
workflow_dispatch :
5
5
inputs :
6
- api_url :
7
- type : string
8
- description : The base URL of the API to scan
9
- default : https://dev.strdata.gov.bc.ca/api
10
6
spec_url :
11
7
type : string
12
8
description : The URL of the OpenAPI/GraphQL spec
@@ -21,19 +17,17 @@ jobs:
21
17
issues : write
22
18
23
19
steps :
24
- - uses : actions/checkout@v3
25
-
26
- - name : ZAP API Scan
27
- uses : zaproxy/action-api-scan@v0.9.0
28
- with :
29
- token : ${{ secrets.GITHUB_TOKEN }}
30
- api_url : ${{ github.event.inputs.api_url }}
31
- openapi : ${{ github.event.inputs.spec_url }}
32
- rules_file_name : ' .zap/rules.tsv'
33
- context_file : ' .zap/context.context'
20
+ - name : Checkout
21
+ uses : actions/checkout@v4
22
+ with :
23
+ ref : main
34
24
35
- - name : Upload ZAP Scan Report
36
- uses : actions/upload-artifact@v3
37
- with :
38
- name : zap-api-scan-report
39
- path : zap_api_scan_report.html
25
+ - name : ZAP API Scan
26
+ uses : zaproxy/action-api-scan@v0.9.0
27
+ with :
28
+ token : ${{ secrets.GITHUB_TOKEN }}
29
+ docker_name : ' ghcr.io/zaproxy/zaproxy:stable'
30
+ format : openapi
31
+ target : ${{ github.event.inputs.spec_url }}
32
+ rules_file_name : ' .zap/rules.tsv'
33
+ cmd_options : ' -a'
You can’t perform that action at this time.
0 commit comments