Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .github/workflows/zap-api-scan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: ZAP API scan

on:
workflow_call:
inputs:
service_apispec_url:
type: string
required: true
secrets:
ACTIONS_TOKEN:
required: true

jobs:
zap_scan:
runs-on: [self-hosted, common]
name: API scan
steps:
- name: Checkout
uses: actions/checkout@v4

- name: ZAP API Scan
uses: zaproxy/action-api-scan@v0.7.0
with:
token: ${{ secrets.ACTIONS_TOKEN }}
docker_name: 'ghcr.io/zaproxy/zaproxy:stable'
format: openapi
target: '${{ inputs.service_apispec_url }}'
fail_action: true
allow_issue_writing: false
29 changes: 29 additions & 0 deletions .github/workflows/zap-baseline-scan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: ZAP Baseline scan

on:
workflow_call:
inputs:
service_url:
type: string
required: true
secrets:
ACTIONS_TOKEN:
required: true

jobs:
zap_scan:
runs-on: [self-hosted, common]
name: Baseline scan
steps:
- name: Checkout
uses: actions/checkout@v4

- name: ZAP Baseline Scan
uses: zaproxy/action-baseline@v0.12.0
with:
token: ${{ secrets.ACTIONS_TOKEN }}
docker_name: 'ghcr.io/zaproxy/zaproxy:stable'
format: openapi
target: '${{ inputs.service_url }}'
fail_action: true
allow_issue_writing: true