use separate cache for dependency-cache data

This commit is contained in:
Armin Schrenk 2023-12-13 16:47:08 +01:00
parent 923af4bc83
commit 720fbd0e6b
No known key found for this signature in database
GPG Key ID: 8F2992163CBBA7FC
2 changed files with 18 additions and 0 deletions

View File

@ -19,6 +19,15 @@ jobs:
distribution: 'temurin'
java-version: 21
cache: 'maven'
- name: Cache NVD DB
uses: actions/cache@v3
with:
path: ~/.m2/repository/org/owasp/dependency-check-data/
key: dependency-check-${{ github.run_id }}
restore-keys: |
dependency-check
env:
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 5
- name: Run org.owasp:dependency-check plugin
id: dependency-check
continue-on-error: true

View File

@ -48,6 +48,15 @@ jobs:
echo "Release not set in dist/linux/common/org.cryptomator.Cryptomator.metainfo.xml"
exit 1
fi
- name: Cache NVD DB
uses: actions/cache@v3
with:
path: ~/.m2/repository/org/owasp/dependency-check-data/
key: dependency-check-${{ github.run_id }}
restore-keys: |
dependency-check
env:
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 5
- name: Run org.owasp:dependency-check plugin
id: dependency-check
continue-on-error: true