fmt/.github/workflows/codeql.yml
2026-06-01 09:31:01 -07:00

32 lines
680 B
YAML

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