From b3dd713d9a98af2015c4f8e70e142a77738367e4 Mon Sep 17 00:00:00 2001 From: Radoslav Radev Date: Mon, 10 Jun 2024 20:50:19 +0200 Subject: [PATCH] Create zap_scan.yaml --- .github/workflows/zap_scan.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/zap_scan.yaml diff --git a/.github/workflows/zap_scan.yaml b/.github/workflows/zap_scan.yaml new file mode 100644 index 0000000..52752bb --- /dev/null +++ b/.github/workflows/zap_scan.yaml @@ -0,0 +1,25 @@ +name: ZAP Security Scan + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + zap_scan: + needs: deploy + runs-on: ubuntu-latest + steps: + - name: ZAP Scan + uses: zaproxy/action-baseline@v0.12.0 + with: + token: ${{ secrets.ZAPGHT }} + docker_name: 'ghcr.io/zaproxy/zaproxy:stable' + target: 'https://react-app-xwjwz3lfdq-ez.a.run.app' + rules_file_name: '.zap/rules.tsv' + cmd_options: '-a'