-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (29 loc) · 997 Bytes
/
zap.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
name: OWASP ZAP Scan
on:
push:
branches:
- main
jobs:
owasp-zap-scan:
runs-on: ubuntu-latest
steps:
# Step 1: Check out the code from the repository
- name: Checkout Code
uses: actions/checkout@v3
# Step 2: Ensure correct permissions for the workspace directory
- name: Set permissions for workspace
run: |
sudo chmod -R 777 ${{ github.workspace }}
# Step 3: Set up OWASP ZAP using the Docker container
- name: Set up OWASP ZAP
uses: docker://zaproxy/zap-stable:latest
# Step 4: Run ZAP Scan against your application
- name: Run ZAP Scan
run: |
docker run -t -v ${{ github.workspace }}:/zap/wrk zaproxy/zap-stable zap-baseline.py -t https://igsglobal.com/our-solutions -r /zap/wrk/zap-report.html
# Step 5: Upload the ZAP scan report as an artifact
- name: Upload ZAP Report
uses: actions/upload-artifact@v3
with:
name: zap-report
path: zap-report.html