@@ -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