Skip to content

Commit cc54bc4

Browse files
committed
Migrate to CodeQL Action v2
New CodeQL analysis capabilities will only be available to users of v3. See https://github.blog/changelog/2025-01-10-code-scanning-codeql-action-v2-is-now-deprecated/
1 parent 0dfa5f7 commit cc54bc4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.ci/check-format.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
SOURCES=$(find $(git rev-parse --show-toplevel) | egrep "\.(cpp|cc|c|h)\$")
44

5-
CLANG_FORMAT=$(which clang-format-12)
5+
CLANG_FORMAT=$(which clang-format-18)
66
if [ $? -ne 0 ]; then
77
CLANG_FORMAT=$(which clang-format)
88
if [ $? -ne 0 ]; then

.github/workflows/codeql.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333

3434
# Initializes the CodeQL tools for scanning.
3535
- name: Initialize CodeQL
36-
uses: github/codeql-action/init@v2
36+
uses: github/codeql-action/init@v3
3737
with:
3838
languages: ${{ matrix.language }}
3939
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -47,7 +47,7 @@ jobs:
4747
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
4848
# If this step fails, then you should remove it and run the build manually (see below)
4949
- name: Autobuild
50-
uses: github/codeql-action/autobuild@v2
50+
uses: github/codeql-action/autobuild@v3
5151

5252
# ℹ️ Command-line programs to run using the OS shell.
5353
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -60,6 +60,6 @@ jobs:
6060
# ./location_of_script_within_repo/buildscript.sh
6161

6262
- name: Perform CodeQL Analysis
63-
uses: github/codeql-action/analyze@v2
63+
uses: github/codeql-action/analyze@v3
6464
with:
6565
category: "/language:${{matrix.language}}"

.github/workflows/main.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
uses: actions/checkout@v4
1717
- name: validate coding style and functionality
1818
run: |
19-
sudo apt-get install -q -y clang-format-12
19+
sudo apt-get install -q -y clang-format-18
2020
.ci/check-format.sh
2121
.ci/build-n-run.sh
2222
shell: bash

0 commit comments

Comments
 (0)