Skip to content

ci(security): add CodeQL advanced setup - #729

Closed
joshconverse wants to merge 1 commit into
masterfrom
security/codeql-advanced-setup
Closed

joshconverse wants to merge 1 commit into
masterfrom
security/codeql-advanced-setup

Conversation

@joshconverse

@joshconverse joshconverse commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Replaces GitHub's CodeQL default setup with an advanced-setup workflow for this repo. Two independent problems with the current state:

Coverage. Default setup cannot analyze Rust at all — the API rejects it outright (rust is not a possible value; the accepted set is actions, c-cpp, csharp, go, java-kotlin, javascript-typescript, python, ruby, swift). And in practice it was only dispatching go, javascript-typescript and python, so two significant surfaces have gone unanalyzed:

  • provider-swift — 7,216,720 bytes of Swift, the second-largest language in the repo. Last CodeQL analysis was 2026-06-16, on Enforce a 90% unified-memory cap + purge KV on unload #363, despite active work on the macOS app since.
  • coordinator/promptsidecar — Rust, never covered.
  • actions — workflow analysis, only intermittent. Relevant given there's an open high alert of exactly this class (actions/untrusted-checkout/high in codex.yml:59).

Requireability. Default setup dispatched conditionally — #704, for one, received zero CodeQL runs. A required status check that never reports blocks a PR forever, so the gate could not safely be made mandatory. Every job here runs on every pull_request, which is the precondition for requiring it.

Also runs on push to master and weekly, so alerts don't go stale between releases.

Test plan

The point of this PR is that its own checks are the test. What to look for:

  • Six CodeQL Analyze (...) checks appear and pass: go, javascript-typescript, python, rust, actions, swift
  • CodeQL Analyze (swift) completes on macOS with submodules — this is the job most likely to need iteration
  • CodeQL Analyze (rust) succeeds with build-mode: none; if the extractor demands a compile, it becomes manual with cargo build
  • No duplicate/conflicting analyses against default setup's /language:* categories

Follow-ups (not in this PR)

  1. Disable default setup for this repo. It's currently enforced by org security configuration 203317, which locks repo-level changes (Code scanning default setup cannot be modified. This setting is controlled by organization administrators.). allow_advanced is already true, so an org admin can switch this repo to advanced. Until that happens, go/javascript-typescript/python are analyzed twice.
  2. Then make these required status checks on ruleset 15055885. It currently has no required_status_checks rule at all, which is why a red security check didn't block fix(store): serialize usage checkpoint DDL #718. Deliberately excluded from any future required set: Threat Model Review (failing 100% since 2026-07-31 on an expired API key — would block every merge) and E2E Benchmarks (never completes; conclusion is always null).
  3. Triage the 12 open code scanning alerts (5 high, 7 medium, oldest 2026-04-14) and the 51 Dependabot alerts on master (7 critical, 24 high).

Deliberately kept the default query suite rather than security-extended, to avoid a flood of new alerts obscuring whether the workflow itself is sound. Worth revisiting once this is green.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

Default setup could not cover Rust at all and in practice only ran go,
javascript-typescript and python, leaving provider-swift and the prompt
sidecar unanalyzed. It also dispatched conditionally, so some PRs got no
CodeQL run — which makes the check impossible to require, since a status
check that never reports blocks a PR forever.

This workflow runs all six languages on every pull request, on push to
master, and weekly.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Aug 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
d-inference Ready Ready Preview Aug 25, 2026 7:28pm
d-inference-console-ui-dev Ready Ready Preview Aug 25, 2026 7:28pm
d-inference-landing Ready Ready Preview Aug 25, 2026 7:28pm

Request Review

@Gajesh2007 Gajesh2007 closed this Oct 5, 2026
jonathan308 added a commit that referenced this pull request Nov 10, 2026
… becomes 413/415

#1922's review items 2 and 3:
- protocol-messages.md and inference.md said the coordinator requires
  `native_media_controls` during rollout. Only a coordinator with platform
  #729 (on platform dev, not yet in production) does; without it such
  requests reach any Super Mac and a Mac without this build refuses them.
  Both now name #729 with a pinned link to `BuildNeedsNativeMediaControls`.
- #1871's fragment shipped in 0.10.11 saying a video's own limits stay
  `invalid_media` (400). That fragment is removed by the 0.10.12 release
  branch's master merge, so editing it would conflict; #1922's own fragment
  now says those limits, like the rest, were `invalid_media` (400) before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch had an error being deployed

1 failed and 3 active deployments
Preview – d-inference — b3ec4a5b Deployed Aug 25, 2026 by vercel[bot]
benchmarks — b3ec4a5b Deployed Aug 25, 2026 by joshconverse via E2E Benchmarks #458
Preview – d-inference-console-ui-dev — b3ec4a5b Deployed Aug 25, 2026 by vercel[bot]
Preview – d-inference-landing — b3ec4a5b Deployed Aug 25, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants