Skip to content

Commit

Permalink
chore: add pen-testing-api.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
overbit committed Apr 16, 2024
1 parent 46536fe commit 5411f0c
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pen-testing-api.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: API Penetration testing
on:
# schedule:
# - cron: '0 0 1 * *'
workflow_dispatch:
inputs:
target:
description: 'URL target of the pen testing'
required: true
default: 'https://server.amplication-sandbox.com/graphql'

jobs:
zap_scan:
runs-on: ubuntu-latest
name: Scan the webapplication
steps:
- name: Checkout
uses: actions/checkout@v4
- name: ZAP Scan
uses: zaproxy/[email protected]
with:
target: ${{ github.event.inputs.target }}
format: openapi
cmd_options: '-m 30 -a'
env:
ZAP_AUTH_HEADER_VALUE: ${{ secrets.AMPLICATION_BOT_TOKEN }}
ZAP_AUTH_HEADER_SITE: ".amplication.com"

0 comments on commit 5411f0c

Please sign in to comment.