Skip to content

CodeQL

CodeQL #424

Workflow file for this run

name: CodeQL
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '0 6 * * 1' # weekly Monday 6am UTC
concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
permissions:
security-events: write
contents: read
jobs:
analyze:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
fail-fast: false
# `python` is intentionally excluded from the language matrix.
# The repo has only a handful of Python helper scripts (no
# production Python under analysis); CodeQL Python autobuild was
# spending ~5 min/week with effectively no coverage. Re-add when
# the engine itself analyses Python source.
matrix:
language: [go, javascript-typescript]
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/codeql-config.yml
- name: Autobuild
uses: github/codeql-action/autobuild@v4
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: '/language:${{ matrix.language }}'