Skip to content

Commit

Permalink
OWASP OWASP#714 : Added code to Cache the JAR file
Browse files Browse the repository at this point in the history
  • Loading branch information
puneeth072003 committed Oct 27, 2023
1 parent 1bcc727 commit 18ac8c5
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/dast-zap-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,25 @@ jobs:
name: DAST test with ZAP
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4
- name: Set up JDK 21
uses: actions/setup-java@v3
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
uses: actions/cache@v3
with:
path: target
key: JarCache-${{ runner.os }}-${{ hashFiles('**/pom.xml') }}
- name: Start wrongsecrets
run: nohup ./mvnw spring-boot:run -Dspring-boot.run.profiles=without-vault &
- name: ZAP Scan
Expand Down

0 comments on commit 18ac8c5

Please sign in to comment.