OWASP ZAP Scan #226
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: OWASP ZAP Scan | |
on: | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: 'Log level' | |
required: true | |
default: 'warning' | |
type: choice | |
options: | |
- info | |
- warning | |
- debug | |
# Only trigger, when the build workflow succeeded | |
workflow_run: | |
workflows: | |
- Terraform | |
branches: | |
- dev | |
types: | |
- completed | |
jobs: | |
zap-scan: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: isbang/[email protected] | |
with: | |
compose-file: './docker-compose.yml' | |
- uses: iFaxity/[email protected] | |
with: | |
resource: http://localhost:3000 | |
- name: ZAP Scan App | |
uses: zaproxy/[email protected] | |
with: | |
target: 'http://localhost:3000' | |
token: ${{ secrets.GITHUB_TOKEN}} | |
allow_issue_writing: false | |
artifact_name: 'app-zap-report' | |
- name: ZAP Scan API | |
uses: zaproxy/[email protected] | |
with: | |
target: 'http://localhost:8080/api/v1' | |
token: ${{ secrets.GITHUB_TOKEN}} | |
allow_issue_writing: false | |
artifact_name: 'api-zap-report' |