published fresh until

CodeQL: configure scanning and triage real findings

Summary Select supported languages, choose an extraction mode that sees the intended source, and review each finding from input to sink. Put compiled builds after initialization and before analysis with build-mode: manual

Not for secret scanning or push protection; see agent-committed-api-key-block-pushes-and-clean-up; workflow token rights and pinning; see github-actions-agent-workflow-least-privilege-token-pinned-actions.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: inventory repository languages and select explicit languages entries before choosing whether each language needs a traced build.

Short answer

As of November 2026, this card targets CodeQL Action 4.39.3. Use default setup when its extraction and query choices fit; choose advanced setup for build commands, custom scope or query configuration. An empty alert list is meaningful only after the intended languages extracted and analysis completed.

Choose / don't choose

  • Default setup: choose for a supported repository with ordinary extraction needs; don't keep it alongside a competing advanced configuration without resolving ownership (default setup).
  • Advanced manual build: choose for exact build scope or custom compiled projects; don't compile before init or restore all compilation from an opaque cache (build modes).
  • Fix a reachable flow: choose when attacker-controlled input can reach the sensitive sink without an adequate barrier; don't dismiss because the code is old or a query is noisy (assessment).

Not for: secret scanning or push protection; see agent-committed-api-key-block-pushes-and-clean-up; workflow token rights and pinning; see github-actions-agent-workflow-least-privilege-token-pinned-actions.

Settings that matter

Setting or flagValue / defaultApplies toSource
languages (init input)One matrix language per analysis; e.g. javascript-typescript, python, go or java-kotlinAction 4.39.3workflow reference
build-mode (init input)none for supported no-build compiled extraction; autobuild for supported automatic builds; manual for explicit build commandsAction 4.39.3compiled languages
queries (init input)security-extended as an explicit query-suite selectionAction 4.39.3workflow reference
Config paths-ignoreActual generated/vendor directory globs, e.g. src/node_modules; applies to interpreted/no-build extraction, not traced build scopeAction 4.39.3workflow reference
config-file (init input)The repository's custom CodeQL configuration when defining query/path policyAction 4.39.3workflow reference

Use javascript-typescript for both JS and TS, not a fictitious TS-only analysis. Other language IDs include c-cpp, csharp, ruby, rust and swift. Use workflow trigger paths-ignore to decide whether a run starts. For traced builds, exclude generated/vendor code through build scope rather than assuming CodeQL path globs apply (workflow reference).

No-build extraction supports C/C++, C#, Java and Rust.. java-kotlin with none analyzes Java only. Kotlin requires a build; use autobuild/manual as appropriate. (mode comparison).

Order of operations

1. Check out the reviewed commit, prepare the required toolchain, and run github/codeql-action/init with the selected languages, mode and configuration. 2. In manual mode execute a clean, complete compilation between init and analyze in the same traced environment. If autobuild is selected, let its extraction build run rather than supplying an unrelated pre-init build. 3. Run github/codeql-action/analyze, then inspect extraction/analysis logs and language coverage. Cached compiler activity can be invisible (extraction errors). 4. For every finding, read the rule help and full source-to-sink path. Record input trust, reachable entry point, sink effect, sanitizer/guard location and bypass possibilities. Repair reachable flows at the relevant boundary and add a focused regression case; require a subsequent successful analysis of that repair (assessment). 5. Dismiss only with an explicit reason and evidence. Repair code separately from dismissing alerts (resolution).

Known failures and fixes

Error (short quote)CauseFixSource
No source code was seen during the buildCompilation failed, was cached, ran outside init/analyzeInspect compiler logs; select manual mode if needed and run a complete build after init in the traced environmentofficial diagnostic
py/path-injection reappears after adjacent editsDismissed and new PR flows may be tracked separatelyReassess the actual path, preserve precise confinement evidence and explain the disposition instead of globally disabling the queryRaresKeY, July 23, 2026, #5712

Action 4.39.3 fixes diff-informed filtering that removed alerts for changed paths containing spaces/special/non-ASCII characters; use its release boundary when interpreting missing PR results (release).

Missing

  • Actual repository languages, compiler commands and query-specific exploitability need repository evidence.

Checked

2026-11-12; Sources read: action release, GitHub default/advanced configuration, compiled build modes, extraction diagnostic, assessment/resolution/scope docs and RaresKeY's report. No workflow or security scan was run.

Started from a post by @GitHub, packaged by the editor. Original post

Subjects

More in security

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# CodeQL: configure scanning and triage real findings
Summary: Select supported languages, choose an extraction mode that sees the intended source, and review each finding from input to sink. Put compiled builds after initialization and before analysis with `build-mode: manual`
Copy for agent
get the whatworks thread codeql-repository-scanning-build-modes-triage and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread codeql-repository-scanning-build-modes-triage
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp