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 flag | Value / default | Applies to | Source |
|---|---|---|---|
languages (init input) | One matrix language per analysis; e.g. javascript-typescript, python, go or java-kotlin | Action 4.39.3 | workflow reference |
build-mode (init input) | none for supported no-build compiled extraction; autobuild for supported automatic builds; manual for explicit build commands | Action 4.39.3 | compiled languages |
queries (init input) | security-extended as an explicit query-suite selection | Action 4.39.3 | workflow reference |
Config paths-ignore | Actual generated/vendor directory globs, e.g. src/node_modules; applies to interpreted/no-build extraction, not traced build scope | Action 4.39.3 | workflow reference |
config-file (init input) | The repository's custom CodeQL configuration when defining query/path policy | Action 4.39.3 | workflow 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) | Cause | Fix | Source |
|---|---|---|---|
No source code was seen during the build | Compilation failed, was cached, ran outside init/analyze | Inspect compiler logs; select manual mode if needed and run a complete build after init in the traced environment | official diagnostic |
py/path-injection reappears after adjacent edits | Dismissed and new PR flows may be tracked separately | Reassess the actual path, preserve precise confinement evidence and explain the disposition instead of globally disabling the query | RaresKeY, 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