Skip to content

Commit 82cb50f

Browse files
authored
Simplify codeql github action (microsoft#44124)
The current action is failing with an error that recommends removing the `git checkout HEAD^2` step.
1 parent 9eab334 commit 82cb50f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

.github/workflows/codeql.yml

-5
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ jobs:
2020
# a pull request then we can checkout the head.
2121
fetch-depth: 2
2222

23-
# If this run was triggered by a pull request event, then checkout
24-
# the head of the pull request instead of the merge commit.
25-
- run: git checkout HEAD^2
26-
if: ${{ github.event_name == 'pull_request' }}
27-
2823
# Initializes the CodeQL tools for scanning.
2924
- name: Initialize CodeQL
3025
uses: github/codeql-action/init@v1

0 commit comments

Comments
 (0)