ZTS: Move zpool_import_hostid_changed* tests to Linux runfile
[zfs.git] / .github / workflows / codeql.yml
blob037f8aca0eaa1f48b7bddb2aa40f1c385db5b7cd
1 name: "CodeQL"
3 on:
4   push:
5   pull_request:
7 jobs:
8   analyze:
9     name: Analyze
10     runs-on: ubuntu-latest
11     permissions:
12       actions: read
13       contents: read
14       security-events: write
16     strategy:
17       fail-fast: false
18       matrix:
19         language: [ 'cpp', 'python' ]
21     steps:
22     - name: Set make jobs
23       run: |
24         echo "MAKEFLAGS=-j$(nproc)" >> $GITHUB_ENV
26     - name: Checkout repository
27       uses: actions/checkout@v3
29     - name: Initialize CodeQL
30       uses: github/codeql-action/init@v2
31       with:
32         languages: ${{ matrix.language }}
34     - name: Autobuild
35       uses: github/codeql-action/autobuild@v2
37     - name: Perform CodeQL Analysis
38       uses: github/codeql-action/analyze@v2
39       with:
40         category: "/language:${{matrix.language}}"