Skip to content

Commit

Permalink
Update dependencycheck.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
christosservos authored Jan 30, 2024
1 parent cb00b8d commit c568130
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/dependencycheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit c568130

Please sign in to comment.