[ISSUE #6708] Use GitHub cache for CodeQL

This commit is contained in:
Aaron Ai
2023-05-06 17:13:43 +08:00
committed by GitHub
parent 41e9b8cf06
commit 42c5fd5fbd
+7 -3
View File
@@ -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