Skip to content

Commit 7d9b32e

Browse files
committed
add code checkout and caching
1 parent 8ea69ce commit 7d9b32e

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

.github/workflows/cvd-database-update-scheduled.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,21 @@ jobs:
1212
build:
1313
runs-on: ubuntu-latest
1414
steps:
15+
- name: Checkout Source
16+
uses: actions/checkout@v6
17+
with:
18+
# Disabling shallow clone is recommended for improving relevancy of reporting
19+
fetch-depth: 0
20+
21+
- name: Cache - Maven Repository
22+
uses: actions/cache@v5
23+
with:
24+
path: |
25+
~/.m2/repository
26+
~/.sonar/cache
27+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
28+
restore-keys: ${{ runner.os }}-maven
29+
1530
- name: Get Date
1631
id: get-date
1732
run: |
@@ -28,8 +43,6 @@ jobs:
2843

2944
- name: Update CVE Database
3045
env:
31-
OWASP_OSS_INDEX_USERNAME: ${{ secrets.OWASP_OSS_INDEX_USERNAME }}
32-
OWASP_OSS_INDEX_APIKEY: ${{ secrets.OWASP_OSS_INDEX_APIKEY }}
3346
NIST_NVD_API_KEY: ${{ secrets.NIST_NVD_API_KEY }}
3447
run: |
3548
mvn -B -DnvdApiDelay=6000 org.owasp:dependency-check-maven:update-only

0 commit comments

Comments
 (0)