Skip to content

CodeQL

CodeQL #944

Workflow file for this run

name: "CodeQL"
on:
push:
branches: [ "RC_2_0", "RC_1_0", "RC_1_1", "RC_1_2", "master" ]
pull_request:
branches: [ "RC_2_0" ]
schedule:
- cron: "3 12 * * 2"
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
fail-fast: false
matrix:
language: [ cpp ]
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 1
filter: tree:0
- name: Install Packages (cpp)
if: ${{ matrix.language == 'cpp' }}
run: |
sudo apt-get update
sudo apt-get install --yes libboost-all-dev libssl-dev ninja-build
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
queries: +security-and-quality
- name: Build cpp
if: ${{ matrix.language == 'cpp' }}
run: |
cmake -Dbuild_examples=ON -Dbuild_tests=ON -Dbuild_tools=ON -GNinja .
cmake --build .
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"