Skip to content

Commit ecfad6b

Browse files
committed
Update CodeQL workflow
Bring the CodeQL workflow up to date with the latest recommended configuration, which analyses the merge commit of pull requests (not the head of the PR branch).
1 parent 26288ad commit ecfad6b

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,7 @@ jobs:
1414
steps:
1515
- name: Checkout repository
1616
uses: actions/checkout@v2
17-
with:
18-
# We must fetch at least the immediate parents so that if this is
19-
# a pull request then we can checkout the head.
20-
fetch-depth: 2
21-
22-
# If this run was triggered by a pull request event, then checkout
23-
# the head of the pull request instead of the merge commit.
24-
- run: git checkout HEAD^2
25-
if: ${{ github.event_name == 'pull_request' }}
26-
17+
2718
# Initializes the CodeQL tools for scanning.
2819
- name: Initialize CodeQL
2920
uses: github/codeql-action/init@v1

0 commit comments

Comments
 (0)