Simplify codeql github action (#44124)

The current action is failing with an error that recommends removing the
`git checkout HEAD^2` step.
This commit is contained in:
Nathan Shively-Sanders
2021-05-17 11:13:30 -07:00
committed by GitHub
parent 9eab33463c
commit 82cb50fa45

View File

@@ -20,11 +20,6 @@ jobs:
# a pull request then we can checkout the head.
fetch-depth: 2
# 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' }}
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1