Browse Source

use separate cache for dependency-cache data

Armin Schrenk 1 year ago
parent
commit
720fbd0e6b
2 changed files with 18 additions and 0 deletions
  1. 9 0
      .github/workflows/dependency-check.yml
  2. 9 0
      .github/workflows/release-check.yml

+ 9 - 0
.github/workflows/dependency-check.yml

@@ -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

+ 9 - 0
.github/workflows/release-check.yml

@@ -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