Skip to content

Commit 18ac8c5

Browse files
committed
OWASP OWASP#714 : Added code to Cache the JAR file
1 parent 1bcc727 commit 18ac8c5

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/dast-zap-test.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,25 @@ jobs:
1313
name: DAST test with ZAP
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
16+
- name: Checkout code
17+
uses: actions/checkout@v4
1718
- name: Set up JDK 21
1819
uses: actions/setup-java@v3
1920
with:
2021
java-version: "21"
2122
distribution: "corretto"
23+
- name: Cache Maven packages
24+
uses: actions/cache@v3
25+
with:
26+
path: ~/.m2
27+
key: MavenCache-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
2228
- name: Clean install
2329
run: ./mvnw --no-transfer-progress clean install -DskipTests -Ddependency-check.skip -Dcyclonedx.skip=true -Dexec.skip
30+
- name: Cache JAR file
31+
uses: actions/cache@v3
32+
with:
33+
path: target
34+
key: JarCache-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
2435
- name: Start wrongsecrets
2536
run: nohup ./mvnw spring-boot:run -Dspring-boot.run.profiles=without-vault &
2637
- name: ZAP Scan

0 commit comments

Comments
 (0)