Skip to content

Commit 34486e6

Browse files
committed
fix codeql-action
1 parent 9c330dc commit 34486e6

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,9 @@ jobs:
3131
# a pull request then we can checkout the head.
3232
fetch-depth: 2
3333

34-
# If this run was triggered by a pull request event, then checkout
35-
# the head of the pull request instead of the merge commit.
36-
- run: git checkout HEAD^2
37-
if: ${{ github.event_name == 'pull_request' }}
38-
3934
# Initializes the CodeQL tools for scanning.
4035
- name: Initialize CodeQL
41-
uses: github/codeql-action/init@v2
36+
uses: github/codeql-action/init@v3
4237
with:
4338
languages: ${{ matrix.language }}
4439
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -49,7 +44,7 @@ jobs:
4944
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5045
# If this step fails, then you should remove it and run the build manually (see below)
5146
- name: Autobuild
52-
uses: github/codeql-action/autobuild@v2
47+
uses: github/codeql-action/autobuild@v3
5348

5449
# ℹ️ Command-line programs to run using the OS shell.
5550
# 📚 https://git.io/JvXDl
@@ -63,4 +58,4 @@ jobs:
6358
# make release
6459

6560
- name: Perform CodeQL Analysis
66-
uses: github/codeql-action/analyze@v2
61+
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)