Skip to content

Commit

Permalink
ci(codeql): remove git checkout HEAD^2 (#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 committed Jul 11, 2022
1 parent d000a0a commit 9a8765c
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/codeql-analysis.yml
Expand Up @@ -23,12 +23,7 @@ jobs:
# 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

# 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@3f62b754e23e0dd60f91b744033e1dc1654c0ec6 # tag=v2
Expand Down

0 comments on commit 9a8765c

Please sign in to comment.