Skip to content

Commit d464b3c

Browse files
committed
ci: Run CodeQL on merge commit.
As per github/codeql-action#297. Signed-off-by: Anders Kaseorg <[email protected]>
1 parent dff5e8f commit d464b3c

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,6 @@ jobs:
99
steps:
1010
- name: Check out repository
1111
uses: actions/checkout@v2
12-
with:
13-
# We must fetch at least the immediate parents so that if this is
14-
# a pull request then we can check out the head.
15-
fetch-depth: 2
16-
17-
# If this run was triggered by a pull request event, then check out
18-
# the head of the pull request instead of the merge commit.
19-
- run: git checkout HEAD^2
20-
if: ${{ github.event_name == 'pull_request' }}
2112

2213
# Initializes the CodeQL tools for scanning.
2314
- name: Initialize CodeQL
@@ -26,5 +17,6 @@ jobs:
2617
# Override language selection by uncommenting this and choosing your languages
2718
# with:
2819
# languages: go, javascript, csharp, python, cpp, java
20+
2921
- name: Perform CodeQL Analysis
3022
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)