Skip to content

Commit

Permalink
feat: penetration tests and reporting (#117)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Oct 5, 2023
1 parent 8e8de45 commit ca1714c
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/pentests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Penetration Tests

on:
schedule: [cron: "0 11 * * 6"] # 3 AM PST = 12 PM UDT, Saturdays
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
zap_scan:
name: Penetration Tests
env:
DOMAIN: apps.silver.devops.gov.bc.ca
PREFIX: ${{ github.event.repository.name }}-test
runs-on: ubuntu-latest
strategy:
matrix:
component: [backend, frontend]
steps:
- name: ZAP Scan
uses: zaproxy/[email protected]
with:
allow_issue_writing: true
artifact_name: "zap_${{ matrix.component }}"
cmd_options: "-a"
issue_title: "ZAP: ${{ matrix.component }}"
target: https://${{ env.PREFIX }}-${{ matrix.component }}.${{ env.DOMAIN }}
2 changes: 1 addition & 1 deletion .github/workflows/pr-close.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pull Request Closed
name: PR Closed

on:
pull_request:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pull Request
name: PR

on:
pull_request:
Expand Down Expand Up @@ -31,7 +31,7 @@ jobs:
Thanks for the PR!
Any successful deployments (not always required) will be available below.
[Backend](https://${{ env.PREFIX }}-backend.${{ env.DOMAIN }})
[Backend](https://${{ env.PREFIX }}-backend.${{ env.DOMAIN }}/actuator/health)
[Frontend](https://${{ env.PREFIX }}-frontend.${{ env.DOMAIN }})
Once merged, code will be promoted and handed off to following workflow run.
Expand Down

0 comments on commit ca1714c

Please sign in to comment.