-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (46 loc) · 1.24 KB
/
zap-scan-dev.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Zap Scanning
on:
schedule:
- cron: "0 11 * * *" # 3am pst
push:
branches:
- dev
- dev-ac-1398 #testing purpose
- dev-RQ-3026 #testing purpose
workflow_dispatch:
inputs:
environment:
type: choice
description: Target environment to deploy latest changes
default: "dev"
required: true
# options:
# - dev
# - test
# - prod
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
zap_scan_frontend:
runs-on: ubuntu-latest
name: Scan the frontend
steps:
- name: ZAP Scan
uses: zaproxy/[email protected]
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
issue_title: 'ZAP Scan Report'
target: ${{ secrets.ZAP_URL_DEV_MARSHALL_FRONTEND }}
zap_scan_request_management:
runs-on: ubuntu-latest
name: Scan the request management api
steps:
- name: ZAP Scan
uses: zaproxy/[email protected]
with:
allow_issue_writing: false
token: ${{ secrets.GITHUB_TOKEN }}
issue_title: 'ZAP Scan Report'
target: ${{ secrets.ZAP_URL_DEV_REQ_MGMT }}