Skip to content

Commit

Permalink
ci(codeql): remove git checkout HEAD^2 (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfy1339 authored and gr2m committed Jul 21, 2022
1 parent 1b1897b commit 0f31aac
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,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 0f31aac

Please sign in to comment.