Skip to content

Commit

Permalink
Test
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Oct 4, 2023
1 parent 8e8de45 commit 1f44ace
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/pentests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
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:
runs-on: ubuntu-latest
name: Penetration Tests
env:
DOMAIN: apps.silver.devops.gov.bc.ca
PREFIX: ${{ github.event.repository.name }}-test
runs-on: ubuntu-latest
strategy:
matrix:
name: [backend, frontend]
steps:
- name: ZAP Scan
uses: zaproxy/action-full-scan@v0.7.0
with:
allow_issue_writing: true
artifact_name: "zap_${{ matrix.name }}"
cmd_options: "-a"
issue_title: "ZAP: ${{ matrix.name }}"
target: https://${{ env.PREFIX }}-${{ matrix.name }}.${{ env.DOMAIN }}
5 changes: 3 additions & 2 deletions .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Pull Request

on:
pull_request:
branches: [main]
# pull_request:
# branches: [main]
workflow_dispatch:

concurrency:
# PR open and close use the same group, allowing only one at a time
Expand Down

0 comments on commit 1f44ace

Please sign in to comment.