From 42c5fd5fbdeeeca10e4aface976d0b6329f0dda9 Mon Sep 17 00:00:00 2001 From: Aaron Ai Date: Sat, 6 May 2023 17:13:43 +0800 Subject: [PATCH] [ISSUE #6708] Use GitHub cache for CodeQL --- .github/workflows/codeql_analysis.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codeql_analysis.yml b/.github/workflows/codeql_analysis.yml index 0f84f7571e..e5e8d323a2 100644 --- a/.github/workflows/codeql_analysis.yml +++ b/.github/workflows/codeql_analysis.yml @@ -14,15 +14,19 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v3 - + - name: Cache Maven packages + uses: actions/cache@v3 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL uses: github/codeql-action/init@v2 with: languages: java - - name: Autobuild uses: github/codeql-action/autobuild@v2 - - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2