name: CodeQL on: pull_request: push: branches: - main schedule: - cron: "41 3 * * 3" workflow_dispatch: permissions: contents: read defaults: run: shell: bash concurrency: group: codeql-${{ github.workflow }}-${{ github.ref }} cancel-in-progress: ${{ github.event_name == 'pull_request' }} jobs: analyze: name: CodeQL ${{ matrix.language }} runs-on: ubuntu-24.04 permissions: contents: read security-events: write strategy: fail-fast: false matrix: include: - language: c-cpp build_mode: manual - language: python build_mode: none steps: - name: Check out repository uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 with: persist-credentials: false - name: Initialize CodeQL uses: github/codeql-action/init@cdf488f595d80d6e07e03d4674febd5ab45fa938 with: languages: ${{ matrix.language }} build-mode: ${{ matrix.build_mode }} - name: Build host C and C++ targets if: matrix.language == 'c-cpp' env: CC: clang CXX: clang++ run: | set -euo pipefail cmake -S poc/host -B .build/codeql-host cmake --build .build/codeql-host --parallel 2 - name: Analyze uses: github/codeql-action/analyze@cdf488f595d80d6e07e03d4674febd5ab45fa938