From c5681308519806286797842005be95c8ca8c9836 Mon Sep 17 00:00:00 2001 From: christosservos <132352106+christosservos@users.noreply.github.com> Date: Tue, 30 Jan 2024 15:39:28 +0200 Subject: [PATCH] Update dependencycheck.yml --- .github/workflows/dependencycheck.yml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/dependencycheck.yml b/.github/workflows/dependencycheck.yml index ee59c2c92..d82867091 100644 --- a/.github/workflows/dependencycheck.yml +++ b/.github/workflows/dependencycheck.yml @@ -13,6 +13,14 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + - uses: actions/cache@v3 + with: + path: | + ~/dependency-check/data + # Ensure the key is unique and based on something that changes when the cache should be rebuilt + key: ${{ runner.os }}-dependency-check-${{ hashFiles('*.db', '*.json') }} + restore-keys: | + ${{ runner.os }}-dependency-check- - name: Depcheck Action - SCA uses: dependency-check/Dependency-Check_Action@main id: Depcheck @@ -25,15 +33,8 @@ jobs: --enableRetired --enableExperimental --nvdApiKey $NVD_API_KEY - - uses: actions/cache@v3 - with: - path: | - ~/.dependency-check/data/ - # Ensure the key is unique and based on something that changes when the cache should be rebuilt - key: ${{ runner.os }}-dependency-check-${{ hashFiles('*.db', '*.json') }} - restore-keys: | - ${{ runner.os }}-dependency-check- - - run: ls ~/.dependency-check/data/* + + - run: ls dependency-check/data/ && ls - name: Upload results - SCA uses: actions/upload-artifact@master with: