Skip to content

Commit 6bdde61

Browse files
committed
ci: remove git checkout HEAD^2 for code analysis script (recommend)
1 parent f9aa833 commit 6bdde61

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

.github/workflows/codeql-analysis.yml

-5
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,6 @@ jobs:
2727
# a pull request then we can checkout the head.
2828
fetch-depth: 2
2929

30-
# If this run was triggered by a pull request event, then checkout
31-
# the head of the pull request instead of the merge commit.
32-
- run: git checkout HEAD^2
33-
if: ${{ github.event_name == 'pull_request' }}
34-
3530
# Initializes the CodeQL tools for scanning.
3631
- name: Initialize CodeQL
3732
uses: github/codeql-action/init@v2

0 commit comments

Comments
 (0)