Skip to content

Commit d148eb0

Browse files
committed
ci: upgrade CodeQL to v4 and enable enhanced security scanning
- Update github/codeql-action from v3 to v4 - Enable security-extended and security-and-quality queries - Improve vulnerability detection capabilities - Remove commented security query configuration
1 parent eff1d4b commit d148eb0

1 file changed

Lines changed: 4 additions & 9 deletions

File tree

.github/workflows/CI-codeql.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,20 +42,15 @@ jobs:
4242

4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v3
45+
uses: github/codeql-action/init@v4
4646
with:
4747
languages: ${{ matrix.language }}
48-
# If you wish to specify custom queries, you can do so here or in a config file.
49-
# By default, queries listed here will override any specified in a config file.
50-
# Prefix the list here with "+" to use these queries and those in the config file.
51-
52-
# Details on CodeQL's query packs refer to : https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
53-
# queries: security-extended,security-and-quality
48+
queries: security-extended,security-and-quality
5449

5550
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, or Java).
5651
# If this step fails, then you should remove it and run the build manually (see below)
5752
- name: Autobuild
58-
uses: github/codeql-action/autobuild@v3
53+
uses: github/codeql-action/autobuild@v4
5954

6055
# ℹ️ Command-line programs to run using the OS shell.
6156
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -68,6 +63,6 @@ jobs:
6863
# ./location_of_script_within_repo/buildscript.sh
6964

7065
- name: Perform CodeQL Analysis
71-
uses: github/codeql-action/analyze@v3
66+
uses: github/codeql-action/analyze@v4
7267
with:
7368
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)