Skip to content

Commit c1807fa

Browse files
authored
Cleanup: allow analysis of merge commits (#730)
Follows updates to CodeQL integration guidance per github/codeql-action#297
1 parent 7e95990 commit c1807fa

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,6 @@ jobs:
3131
steps:
3232
- name: Checkout repository
3333
uses: actions/checkout@v2
34-
with:
35-
# We must fetch at least the immediate parents so that if this is
36-
# a pull request then we can checkout the head.
37-
fetch-depth: 2
38-
39-
# If this run was triggered by a pull request event, then checkout
40-
# the head of the pull request instead of the merge commit.
41-
- run: git checkout HEAD^2
42-
if: ${{ github.event_name == 'pull_request' }}
4334

4435
# Initializes the CodeQL tools for scanning.
4536
- name: Initialize CodeQL

0 commit comments

Comments
 (0)