Run ZAP API Scan #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run ZAP API Scan | |
on: | |
workflow_dispatch: | |
inputs: | |
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: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: main | |
- name: ZAP API Scan | |
uses: zaproxy/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
docker_name: 'ghcr.io/zaproxy/zaproxy:stable' | |
format: openapi | |
target: ${{ github.event.inputs.spec_url }} | |
rules_file_name: '.zap/rules.tsv' | |
cmd_options: '-a' |