Files
sokhan/.github/workflows/codeql.yml
T
Abolfazl Ranjbaran 3d74253a58 docs(professional-audit): community health, CodeQL, docs truthfulness
Second audit round, findings fixed:
- ROADMAP was two versions stale: v1.3 still labelled 'current work',
  the plans feature absent. All shipped sections now carry their
  version, open work lives under 'next — current work' with real
  issue numbers (#29/#30/#31) and the two pending experiments
- architecture.md Quota section documented only the v1.3 monthly
  allowance; now covers the full plans system: free/pro table, both
  402 codes, expiry downgrade, stacked renewals, admin endpoint and
  the deliberate no-payment-gateway design (all claims verified
  against limits.py/deps.py/routes_admin.py/handlers.py)
- CODE_OF_CONDUCT.md (Contributor Covenant 2.1) + CODEOWNERS —
  community profile previously missing both
- CodeQL workflow: weekly + per-push SAST over Python
  (security-extended) and web, results in the Security tab
- .env.example: WEBHOOK_TIMEOUT_SECONDS / WEBHOOK_ATTEMPTS existed in
  Settings but were undocumented
- landing page: transparent-quota feature card (headline feature of
  v1.4.0 was absent from the product face)
- CHANGELOG Unreleased section documents all of the above

Validated: YAML parses, HTML tag balance, linkcheck 25/25,
CI green on the previous commit.
2026-11-25 14:54:27 +00:00

52 lines
1.5 KiB
YAML

name: CodeQL
# Static security analysis (SAST) of the Python backend/bot and the
# Next.js dashboard. Results land in the repo's Security tab under
# "Code scanning" so vulnerabilities are visible, not guessed.
# Free for public repositories.
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
# Weekly scan on top of every push: catches newly discovered
# patterns in dependencies that never changed.
- cron: "17 4 * * 1"
permissions:
security-events: write
contents: read
jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- language: python
paths: backend bot training benchmarks space deploy
- language: javascript-typescript
paths: web
steps:
- uses: actions/checkout@v4
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# "none" build mode: modern CodeQL extracts JS/TS without a build;
# Python needs no build either.
build-mode: none
queries: security-extended
- if: matrix.language == 'javascript-typescript'
name: Install web deps for extraction
working-directory: web
run: npm ci
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{ matrix.language }}"