Skip to content

Commit f7ed1f6

Browse files
use separate cache for dependency-cache data
1 parent 167b621 commit f7ed1f6

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/dependency-check.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ jobs:
2121
with:
2222
distribution: 'temurin'
2323
java-version: 21
24-
- name: Cache Maven Repository
24+
cache: 'maven'
25+
- name: Cache NVD DB
2526
uses: actions/cache@v3
2627
with:
27-
path: ~/.m2/repository
28-
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}-dependency-check
28+
path: ~/.m2/repository/org/owasp/dependency-check-data/
29+
key: dependency-check-${{ github.run_id }}
2930
restore-keys: |
30-
setup-java-${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
31-
setup-java-${{ runner.os }}-maven-
31+
dependency-check
3232
env:
3333
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 5
3434
- name: Run org.owasp:dependency-check plugin

0 commit comments

Comments
 (0)