diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 01f43bfd78b..f2ba83977e7 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -126,6 +126,14 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Restore maven cache # We need maven cache for Sonar to have access to java libraries code + uses: actions/cache/restore@v4 + with: + fail-on-cache-miss: true + path: | + ~/.m2/repository/*/*/* + !~/.m2/repository/org/owasp/dependency-check-data + key: maven-${{ runner.os }}-${{ hashFiles('**/pom.xml') }} - name: Download frontend test reports uses: actions/download-artifact@v4 with: