Skip to content

CodeQL

CodeQL #468

Workflow file for this run

name: CodeQL
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: '7 23 * * 4'
workflow_dispatch:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
timeout-minutes: 60
permissions:
security-events: write
actions: read
contents: read
strategy:
fail-fast: false
matrix:
language:
- c-cpp
- actions
steps:
- name: Check out code
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
- name: Initialize CodeQL
uses: github/codeql-action/init@e12f0178983d466f2f6028f5cc7a6d786fd97f4b # v4.31.4
with:
languages: ${{ matrix.language }}
- name: Install dependencies
uses: ./.github/actions/install-dependencies
- name: Build
run: |
cmake -B build
cmake --build build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@e12f0178983d466f2f6028f5cc7a6d786fd97f4b # v4.31.4
with:
category: "/language:${{ matrix.language }}"