From 3046d2ca7ec6d15db34b58120f2aa9c9015a367a Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Mon, 1 Jun 2026 09:31:01 -0700 Subject: [PATCH] Add CodeQL workflow --- .github/workflows/codeql.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 00000000..6a87572e --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,31 @@ +name: codeql + +on: + push: + branches: [main] + pull_request: + branches: [main] + +permissions: + contents: read + security-events: write + actions: read + +jobs: + analyze: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + + - uses: github/codeql-action/init@c10b8064de6f491fea524254123dbe5e09572f13 # v3.29.5 + with: + languages: c-cpp + + - name: Build + run: | + cmake -B build -DFMT_DOC=OFF -DFMT_TEST=OFF + cmake --build build --parallel + + - uses: github/codeql-action/analyze@c10b8064de6f491fea524254123dbe5e09572f13 # v3.29.5 + with: + category: /language:c-cpp