Skip to content

Commit

Permalink
use separate cache key for dependency-check
Browse files Browse the repository at this point in the history
(use same restore key as "normal" setup-java as a backup)
  • Loading branch information
overheadhunter committed Dec 13, 2023
1 parent 2862383 commit 0108454
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/dependency-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,15 @@ jobs:
with:
distribution: 'temurin'
java-version: 21
cache: 'maven'
- uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-dependency-check
restore-keys: |
${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
${{ runner.os }}-maven-
env:
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 5
- name: Run org.owasp:dependency-check plugin
id: dependency-check
continue-on-error: true
Expand Down

0 comments on commit 0108454

Please sign in to comment.