Skip to content

Commit f567d52

Browse files
committed
Adjust CodeQL workflow
1 parent 2ff1a1f commit f567d52

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,20 +32,25 @@ jobs:
3232
strategy:
3333
fail-fast: false
3434
matrix:
35-
language: [ 'cpp', 'python' ]
35+
include:
36+
- language: c-cpp
37+
build-mode: manual
38+
- language: python
39+
build-mode: none
3640
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
3741
# Learn more:
3842
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
3943

4044
steps:
4145
- name: Checkout repository
42-
uses: actions/checkout@v2
46+
uses: actions/checkout@v4
4347

4448
# Initializes the CodeQL tools for scanning.
4549
- name: Initialize CodeQL
46-
uses: github/codeql-action/init@v2
50+
uses: github/codeql-action/init@v3
4751
with:
4852
languages: ${{ matrix.language }}
53+
build-mode: ${{ matrix.build-mode }}
4954
# If you wish to specify custom queries, you can do so here or in a config file.
5055
# By default, queries listed here will override any specified in a config file.
5156
# Prefix the list here with "+" to use these queries and those in the config file.
@@ -64,10 +69,13 @@ jobs:
6469
# uses a compiled language
6570

6671
- name: Build
67-
- run: |
72+
- if: matrix.build-mode == 'manual'
73+
run: |
6874
autoreconf
6975
./configure
7076
make
7177
7278
- name: Perform CodeQL Analysis
73-
uses: github/codeql-action/analyze@v2
79+
uses: github/codeql-action/analyze@v3
80+
with:
81+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)