-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (32 loc) · 1.03 KB
/
zap-scan.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
name: Site Security Scan
on:
push:
branches: [dev]
jobs:
zap_scan:
runs-on: ubuntu-latest
name: Scan the web application
env:
ZAP_REPORT: zap-report.xml
HTML_ZAP_REPORT: zap-report.html
steps:
- name: ZAP Scan
uses: zaproxy/action-full-scan@v0.2.0
with:
target: "https://dev-pims.th.gov.bc.ca/"
cmd_options: "-r ${{ env.HTML_ZAP_REPORT }} -x ${{ env.ZAP_REPORT }}"
fail_action: false
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
if: ${{ github.event_name == 'push' }}
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_URL }}
PROJECT_KEY: PIMS-ZAP
PROJECT_NAME: PIMS-ZAP
with:
args: >
-Dsonar.projectKey=${{ env.PROJECT_KEY }}
-Dsonar.projectName=${{ env.PROJECT_NAME }}
-Dsonar.zaproxy.reportPath=${{ env.ZAP_REPORT }}
-Dsonar.zaproxy.htmlReportPath=${{ env.HTML_ZAP_REPORT }}