Skip to content

Fixed Docs.

Fixed Docs. #1621

Workflow file for this run

name: "CodeQL"
on:
push:
pull_request:
merge_group:
schedule:
- cron: "15 21 * * 6"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
CMAKE_BUILD_PARALLEL_LEVEL: 3
jobs:
analyze:
name: Analyze ${{ matrix.language }}
runs-on: ubuntu-latest
permissions:
security-events: write
strategy:
fail-fast: false
matrix:
language: ["cpp", "python"]
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup ccache
uses: Chocobo1/setup-ccache-action@v1
with:
prepend_symlinks_to_path: false
override_cache_key: codeql-${{ matrix.language }}
- name: Install flint
run: sudo apt-get install libflint-dev
- name: Set up mold as linker
uses: rui314/setup-mold@v1
- if: matrix.language == 'python'
name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- if: matrix.language == 'python'
name: Install dependencies
run: |
python -m pip install --upgrade pip wheel setuptools
pip install scikit-build-core[pyproject] setuptools_scm pybind11
pip install --no-build-isolation -ve .
echo "CODEQL_PYTHON=$(which python)" >> $GITHUB_ENV
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
setup-python-dependencies: false
config: |
queries:
- uses: security-and-quality
- if: matrix.language == 'cpp'
name: Configure CMake
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Debug
- if: matrix.language == 'cpp'
name: Build
run: cmake --build build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
upload: False
output: sarif-results
- name: filter-sarif
uses: advanced-security/filter-sarif@main
with:
patterns: |
-**/extern/**
input: sarif-results/${{ matrix.language }}.sarif
output: sarif-results/${{ matrix.language }}.sarif
- name: Upload SARIF
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: sarif-results/${{ matrix.language }}.sarif