CodeQL scan merge commit instead of PR head

Removes runtime warning
This commit is contained in:
Raymond Li 2021-01-25 22:57:33 -05:00 committed by GitHub
parent 9436bab829
commit a318ff3d07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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