Skip to content

Commit 6710760

Browse files
authored
ci(codeql): remove unnecessary step to checkout HEAD~2 from PRs (#478)
1 parent cd956b3 commit 6710760

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

.github/workflows/codeql.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ jobs:
2121
# We must fetch at least the immediate parents so that if this is
2222
# a pull request then we can checkout the head.
2323
fetch-depth: 2
24-
25-
# If this run was triggered by a pull request event, then checkout
26-
# the head of the pull request instead of the merge commit.
27-
- run: git checkout HEAD^2
28-
if: ${{ github.event_name == 'pull_request' }}
2924

3025
# Initializes the CodeQL tools for scanning.
3126
- name: Initialize CodeQL

0 commit comments

Comments
 (0)