From a318ff3d071cdff0e324f129ced3afa67f72e314 Mon Sep 17 00:00:00 2001 From: Raymond Li Date: Mon, 25 Jan 2021 22:57:33 -0500 Subject: [PATCH] CodeQL scan merge commit instead of PR head Removes runtime warning --- .github/workflows/codeql-analysis.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index f6af226..2cf3609 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -38,8 +38,9 @@ jobs: # If this run was triggered by a pull request event, then checkout # the head of the pull request instead of the merge commit. - - run: git checkout HEAD^2 - if: ${{ github.event_name == 'pull_request' }} + # CodeQL apparently deprecated this feature and now warns on running this command + # - run: git checkout HEAD^2 + # if: ${{ github.event_name == 'pull_request' }} # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL