Skip to content

CodeQL

CodeQL #64

Workflow file for this run

name: "CodeQL"
on:
push:
branches: [ "develop", "stable" ]
pull_request:
branches: [ "develop", "stable" ]
schedule:
- cron: '17 6 * * 0'
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
permissions:
# required for all workflows
security-events: write
# required to fetch internal or private CodeQL packs
packages: read
# only required for workflows in private repositories
actions: read
contents: read
strategy:
fail-fast: false
matrix:
include:
- language: actions
build-mode: none
- language: c-cpp
build-mode: autobuild
- language: python
build-mode: none
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
submodules: 'recursive'
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# Build the project manually for C/C++
- name: Build C/C++ project
run: |
cmake -DCMAKE_BUILD_TYPE=release -S . -B _build
cmake --build _build -j
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{matrix.language}}"