File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name: OWASP ZAP Security Scan
2+
3+ on:
4+ push:
5+ branches:
6+ - main
7+ pull_request:
8+ branches:
9+ - main
10+
11+ jobs:
12+ zap_scan:
13+ runs-on: ubuntu-latest
14+
15+ steps:
16+ # Step 1: Checkout the repository code
17+ - name: Checkout code
18+ uses: actions/checkout@v3
19+
20+ # Step 2: Set up Java (ZAP requires Java)
21+ - name: Set up Java
22+ uses: actions/setup-java@v3
23+ with:
24+ java-version: '11'
25+ distribution: 'adopt'
26+
27+ # Step 3: Download and run OWASP ZAP
28+ - name: Run OWASP ZAP baseline scan
29+ uses: zaproxy/action-baseline@v0.6.0
30+ with:
31+ target: 'https://www.kobelcogps.com' # Replace with your target URL
32+ rules: '' # Optional: Custom scan rulesrules/scan-rules.tsv
33+ format: 'markdown' # Report format (markdown, json, etc.)
34+ output-file: 'www-kobelcogps-com.md' # Output file name
35+ fail-action: true # Fail the job if vulnerabilities are found
You can’t perform that action at this time.
0 commit comments