Skip to content

Commit f460b58

Browse files
committed
Update codeql.yml
Signed-off-by: Sora Morimoto <[email protected]>
1 parent 7c5c3fa commit f460b58

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/codeql.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,18 @@ jobs:
1313
steps:
1414
- name: Checkout code
1515
uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 2
18+
19+
- name: Checkout the head of the pull request instead
20+
run: git checkout HEAD^2
21+
if: ${{ github.event_name == 'pull_request' }}
1622

1723
- name: Initialize CodeQL
1824
uses: github/codeql-action/init@v1
1925

2026
- name: Autobuild
2127
uses: github/codeql-action/autobuild@v1
2228

23-
- name: Perform CodeQL Analysis
29+
- name: Perform CodeQL analysis
2430
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)