1717 # Disabling shallow clone is recommended for improving relevancy of reporting
1818 fetch-depth : 0
1919
20- - name : Cache maven repository
21- uses : actions/cache@v5
20+ - name : Restore Cache - Maven Repository
21+ uses : actions/cache/restore @v5
2222 with :
2323 path : |
2424 ~/.m2/repository
@@ -51,12 +51,19 @@ jobs:
5151 run : |
5252 mvn install sonar:sonar -P coverage -Dsonar.projectKey=FraunhoferIOSB_FAAAST-Service --settings maven-ci-settings.xml -B
5353
54- - name : Restore CVD Database from Cache
54+ - name : Get Date
55+ id : get-date
56+ run : |
57+ echo "date=$(/bin/date -u "+%Y-%m-%dT%H:%M:%S")" >> $GITHUB_OUTPUT
58+ shell : bash
59+
60+ - name : Restore Cache - CVD Database
5561 uses : actions/cache/restore@v5
5662 with :
5763 path : |
5864 ~/.m2/repository/org/owasp/dependency-check-data
59- key : ${{ runner.os }}-maven-owasp-cvedb
65+ key : ${{ runner.os }}-maven-owasp-cvedb-${{ steps.get-date.outputs.date }}
66+ restore-keys : ${{ runner.os }}-maven-owasp-cvedb
6067
6168 - name : Update CVD Database
6269 env :
@@ -66,12 +73,12 @@ jobs:
6673 run : |
6774 mvn -B -P owasp -DnvdApiDelay=6000 --settings maven-ci-settings.xml org.owasp:dependency-check-maven:update-only
6875
69- - name : Save CVD Database to Cache
76+ - name : Save Cache - CVD Database
7077 uses : actions/cache/save@v5
7178 with :
7279 path : |
7380 ~/.m2/repository/org/owasp/dependency-check-data
74- key : ${{ runner.os }}-maven-owasp-cvedb
81+ key : ${{ runner.os }}-maven-owasp-cvedb-${{ steps.get-date.outputs.date }}
7582
7683 - name : Dependency Vulnerability Check with OWASP
7784 env :
0 commit comments