Skip to content

Commit

Permalink
chore(ci): removed ZAP from DEV, TEST and Added to PROD (#454)
Browse files Browse the repository at this point in the history
  • Loading branch information
sukanya-rath authored May 1, 2024
1 parent 0ea9e6b commit 28228f9
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 24 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/cd-to-prod-on-workflow-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,15 @@ jobs:
frontend-url: https://paytransparency.fin.gov.bc.ca
semver: ${{ github.event.inputs.tag }}
values: "values-prod.yaml"
zap:
name: ZAP Scan
needs: [deploys]
runs-on: ubuntu-22.04
steps:
- name: Penetration Test
uses: zaproxy/[email protected]
with:
target: https://paytransparency.fin.gov.bc.ca
cmd_options: "-a"
fail_action: false
allow_issue_writing: false
13 changes: 1 addition & 12 deletions .github/workflows/cd-to-test-on-workflow-dispatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,4 @@ jobs:
with:
backend-external-url: https://pay-transparency-test-backend-external.apps.silver.devops.gov.bc.ca/api
environment: test
zap:
name: ZAP Scan
needs: [deploys]
runs-on: ubuntu-22.04
steps:
- name: Penetration Test
uses: zaproxy/[email protected]
with:
target: https://test.paytransparency.fin.gov.bc.ca
cmd_options: "-a"
fail_action: false
allow_issue_writing: false

13 changes: 1 addition & 12 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,15 +126,4 @@ jobs:
with:
backend-external-url: https://pay-transparency-dev-backend-external.apps.silver.devops.gov.bc.ca/api

zap:
name: ZAP Scan
needs: [deploys]
runs-on: ubuntu-22.04
steps:
- name: Penetration Test
uses: zaproxy/[email protected]
with:
target: https://dev.paytransparency.fin.gov.bc.ca
cmd_options: "-a"
fail_action: false
allow_issue_writing: false

21 changes: 21 additions & 0 deletions .github/workflows/scheduled.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Scheduled Jobs

on:
workflow_dispatch:
schedule:
- cron: '0 11 * * 6' # 3 AM PST = 12 PM UDT, Saturdays

jobs:

zap:
name: ZAP Scan
needs: [deploys]
runs-on: ubuntu-22.04
steps:
- name: Penetration Test
uses: zaproxy/[email protected]
with:
target: https://paytransparency.fin.gov.bc.ca
cmd_options: "-a"
fail_action: false
allow_issue_writing: false

0 comments on commit 28228f9

Please sign in to comment.