Skip to content

Commit a613c6d

Browse files
committed
OWASP OWASP#714 : Fixing Cache related issues
1 parent c972414 commit a613c6d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

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

+4-5
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,17 @@ jobs:
2020
with:
2121
java-version: "21"
2222
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') }}
2823
- name: Clean install
2924
run: ./mvnw --no-transfer-progress clean install -DskipTests -Ddependency-check.skip -Dcyclonedx.skip=true -Dexec.skip
3025
- name: Cache JAR file
26+
id: cache-jar
3127
uses: actions/cache@v3
28+
run: pwd
3229
with:
3330
path: target/wrongsecrets-1.7.0-SNAPSHOT.jar
3431
key: JarCache-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
32+
restore-keys: |
33+
JarCache-${{ runner.os }}-
3534
- name: Start wrongsecrets
3635
run: nohup ./mvnw spring-boot:run -Dspring-boot.run.profiles=without-vault &
3736
- name: ZAP Scan

0 commit comments

Comments
 (0)