Skip to content

Commit 0108454

Browse files
use separate cache key for dependency-check
(use same restore key as "normal" setup-java as a backup)
1 parent 2862383 commit 0108454

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/dependency-check.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,15 @@ jobs:
2121
with:
2222
distribution: 'temurin'
2323
java-version: 21
24-
cache: 'maven'
24+
- uses: actions/cache@v3
25+
with:
26+
path: ~/.m2/repository
27+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-dependency-check
28+
restore-keys: |
29+
${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
30+
${{ runner.os }}-maven-
31+
env:
32+
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 5
2533
- name: Run org.owasp:dependency-check plugin
2634
id: dependency-check
2735
continue-on-error: true

0 commit comments

Comments
 (0)