Skip to content

Psp 9512 jobs for upload, polling, retries (#4529) #3845

Psp 9512 jobs for upload, polling, retries (#4529)

Psp 9512 jobs for upload, polling, retries (#4529) #3845

Workflow file for this run

name: Site Security Scan
on:
push:
branches: [dev]
jobs:
zap_scan:
runs-on: ubuntu-22.04
name: Scan the web application
env:
ZAP_REPORT: zap-report.xml
HTML_ZAP_REPORT: zap-report.html
steps:
- name: ZAP Scan
uses: zaproxy/[email protected]
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 }}