From 6e3b3f0f2e976877ab1db0acf939a6e1a8ad44dc Mon Sep 17 00:00:00 2001 From: Nikita Koksharov Date: Mon, 15 Mar 2021 08:48:43 +0300 Subject: [PATCH] Update codeql-analysis.yml --- .github/workflows/codeql-analysis.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 4c517a2f9..bd9cdb1df 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -31,10 +31,18 @@ jobs: steps: - name: Checkout repository uses: actions/checkout@v2 - with: +# with: # We must fetch at least the immediate parents so that if this is # a pull request then we can checkout the head. - fetch-depth: 2 +# fetch-depth: 2 + + - name: Cache local Maven repository + uses: actions/cache@v2 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- # If this run was triggered by a pull request event, then checkout # the head of the pull request instead of the merge commit.