Skip to content

Commit

Permalink
OWASP OWASP#714 : Fixing Cache related issues
Browse files Browse the repository at this point in the history
  • Loading branch information
puneeth072003 committed Oct 27, 2023
1 parent c972414 commit a613c6d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/dast-zap-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,17 @@ jobs:
with:
java-version: "21"
distribution: "corretto"
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: MavenCache-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
- name: Clean install
run: ./mvnw --no-transfer-progress clean install -DskipTests -Ddependency-check.skip -Dcyclonedx.skip=true -Dexec.skip
- name: Cache JAR file
id: cache-jar
uses: actions/cache@v3
run: pwd
with:
path: target/wrongsecrets-1.7.0-SNAPSHOT.jar
key: JarCache-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
restore-keys: |
JarCache-${{ runner.os }}-
- name: Start wrongsecrets
run: nohup ./mvnw spring-boot:run -Dspring-boot.run.profiles=without-vault &
- name: ZAP Scan
Expand Down

0 comments on commit a613c6d

Please sign in to comment.