Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# This workflow replaces the repository-settings-generated CodeQL setup.
# Running the job in a container avoids workspace permission issues on
# self-hosted runners and keeps the build environment fully isolated.
name: CodeQL

on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '0 6 * * 1'

jobs:
analyze:
name: Analyze (cpp)
runs-on: self-hosted

container:
image: buildpack-deps:jammy

defaults:
run:
shell: bash

permissions:
actions: read
contents: read
security-events: write

steps:
- name: Configure Git safe directory
run: git config --global --add safe.directory '*'

- name: Checkout
uses: actions/checkout@v6

- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: cpp

- name: Build
run: |
make clean || true # tolerate missing or no-op clean target
make -j"$(nproc)"

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
Loading