CI: Stick with ubuntu-22.04 for CodeQL analysis
[zfs.git] / .github / workflows / codeql.yml
blobe975d7dd00b92c4e6914d7f53ae5146974904743
1 name: "CodeQL"
3 on:
4   push:
5   pull_request:
7 concurrency:
8   group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
9   cancel-in-progress: true
11 jobs:
12   analyze:
13     name: Analyze
14     runs-on: ubuntu-22.04
15     permissions:
16       actions: read
17       contents: read
18       security-events: write
20     strategy:
21       fail-fast: false
22       matrix:
23         language: [ 'cpp', 'python' ]
25     steps:
26     - name: Set make jobs
27       run: |
28         echo "MAKEFLAGS=-j$(nproc)" >> $GITHUB_ENV
30     - name: Checkout repository
31       uses: actions/checkout@v4
33     - name: Initialize CodeQL
34       uses: github/codeql-action/init@v3
35       with:
36         config-file: .github/codeql-${{ matrix.language }}.yml
37         languages: ${{ matrix.language }}
39     - name: Autobuild
40       uses: github/codeql-action/autobuild@v3
42     - name: Perform CodeQL Analysis
43       uses: github/codeql-action/analyze@v3
44       with:
45         category: "/language:${{matrix.language}}"