Skip to content

Commit 4d90181

Browse files
authored
Create code-saomiao
1 parent aef66c4 commit 4d90181

1 file changed

Lines changed: 35 additions & 0 deletions

File tree

.github/workflows/code-saomiao

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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

0 commit comments

Comments
 (0)