Some checks are pending
build-images / api (push) Waiting to run
build-images / worker-gpu (push) Waiting to run
build-images / web (push) Waiting to run
codeql / Analyze (javascript-typescript) (push) Waiting to run
codeql / Analyze (python) (push) Waiting to run
perf / API hot-path micro-smoke (budgeted) (push) Waiting to run
perf / Desktop engine crates (release build check) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Waiting to run
vision2026-ci / API phase modules (ruff + pytest) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Waiting to run
vision2026-ci / Python SDK resource tests (push) Waiting to run
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Waiting to run
vision2026-ci / Alembic upgrade + drift check (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Waiting to run
Paid, hosted product at menivor.com, now retired as a company project. Fresh squashed history of the cleaned working tree (secret-scanned, no .env, no customer data, no outreach logs). Built on MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
87 lines
3.9 KiB
YAML
87 lines
3.9 KiB
YAML
# CodeQL security scanning (P12) — static analysis for the Python backend and the
|
|
# TypeScript/JS surfaces (web, mobile, packages). Runs on PRs, pushes to the main
|
|
# branches, and a weekly schedule so newly-disclosed query packs re-scan the tree.
|
|
name: codeql
|
|
|
|
on:
|
|
push:
|
|
branches: [main, "reelforge/**"]
|
|
pull_request:
|
|
branches: [main]
|
|
schedule:
|
|
- cron: "0 4 * * 2" # weekly Tuesday 04:00 UTC
|
|
|
|
concurrency:
|
|
group: codeql-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: read
|
|
security-events: write
|
|
|
|
jobs:
|
|
analyze:
|
|
name: Analyze (${{ matrix.language }})
|
|
runs-on: self-hosted
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
language: [python, javascript-typescript]
|
|
env:
|
|
# Root-caused live on the runner (recoder-micro, 956Mi physical RAM +
|
|
# 6Gi swap, shared with two other repos' self-hosted runners): neither
|
|
# the original "Invalid RAM setting -68" nor the later "Evaluator heap
|
|
# must be at least 384.00 MiB" failure is actually about the `ram:`
|
|
# value below. Reproduced directly on the runner with `codeql database
|
|
# create` on a *one-line* file (and with no --ram override at all):
|
|
# TRAP import always completes fine, then `database finalize`'s
|
|
# built-in post-import cleanup (an internal `dataset cleanup` call that
|
|
# does its OWN percentage-of-available-RAM autodetection, independent
|
|
# of whatever --ram/--threads were passed to finalize) reliably throws
|
|
# the same "Evaluator heap must be at least 384.00 MiB" error — 100%
|
|
# reproducible across repeated runs regardless of the dataset size or
|
|
# the configured ram. Calling `codeql database cleanup`/`dataset
|
|
# cleanup` as a *standalone* command on the same box succeeds every
|
|
# time, so the bug is specific to the cleanup nested inside finalize.
|
|
# Work around it with CodeQL's documented escape hatch
|
|
# (CODEQL_ACTION_EXTRA_OPTIONS, consumed by codeql-action's
|
|
# getExtraOptionsFromEnv) to pass `--no-cleanup` straight to the
|
|
# `database finalize` invocation, skipping that broken internal step
|
|
# entirely (confirmed live: finalize exits 0 with this flag on this
|
|
# runner). See github/codeql-action's src/codeql.ts finalizeDatabase().
|
|
CODEQL_ACTION_EXTRA_OPTIONS: '{"database":{"finalize":["--no-cleanup"]}}'
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Initialize CodeQL
|
|
uses: github/codeql-action/init@v3
|
|
with:
|
|
languages: ${{ matrix.language }}
|
|
queries: security-and-quality
|
|
# Kept modest (not maxed out at the swap-backed ~6.9GB total)
|
|
# since this is now just the TRAP-import budget, not a workaround
|
|
# for the finalize-cleanup bug above — a smaller heap means less
|
|
# swapping on this 956Mi-RAM box and less contention with the
|
|
# other two repos' self-hosted runners that share it. GitHub's
|
|
# documented floor is 2048; values below that are rounded up.
|
|
ram: "2048"
|
|
# Single-thread the evaluator so the whole --ram budget isn't
|
|
# divided across threads on this 2-vCPU box, and so it competes
|
|
# less with the box's other live production workloads.
|
|
threads: "1"
|
|
|
|
- name: Autobuild
|
|
uses: github/codeql-action/autobuild@v3
|
|
|
|
- name: Analyze
|
|
uses: github/codeql-action/analyze@v3
|
|
with:
|
|
category: "/language:${{ matrix.language }}"
|
|
# We only need the SARIF results, not the compiled database
|
|
# artifact. Uploading it triggers a second, *standalone*
|
|
# `database cleanup --cache-cleanup=...` call after analysis;
|
|
# that one doesn't hit the finalize-cleanup bug above in testing,
|
|
# but skipping the upload avoids the extra time/memory/disk cost
|
|
# of bundling it on this tiny box for an artifact nothing reads.
|
|
upload-database: false
|