forked from OWASP/wrongsecrets
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 943 Bytes
/
dast-zap-test.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
name: DAST with ZAP
on:
pull_request:
branches: [master]
workflow_dispatch:
permissions:
contents: read
jobs:
test-dast:
name: DAST test with ZAP
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 19
uses: actions/setup-java@v3
with:
java-version: "19"
distribution: "temurin"
- name: Clean install
run: ./mvnw --no-transfer-progress clean install -DskipTests -Ddependency-check.skip -Dcyclonedx.skip=true -Dexec.skip
- name: Start wrongsecrets
run: nohup ./mvnw spring-boot:run -Dspring-boot.run.profiles=without-vault &
- name: ZAP Scan
uses: zaproxy/[email protected]
with:
allow_issue_writing: false
docker_name: "owasp/zap2docker-stable"
target: "http://localhost:8080"
rules_file_name: config/zap/rule-config.tsv
fail_action: true