REA CodeQL notes (unofficial)
CodeQL trees (codeql-config.yml / query-suite / database path pins) record GitHub-native SAST identity. In REA 6.7.x, treat selected suite and database labels as Evidence beside archive/package routes — complementing Semgrep / Bandit / SonarCloud cousins without inventing APIs. Distinct from rea-semgrep (CodeQL ≠ Semgrep) and rea-sonarcloud (CodeQL ≠ SonarCloud). Preferred slug kept free — KEEP.
Mental model
- Authorize the CodeQL config tree (+ packaged charts you hold).
- Quote selected identity labels you actually see (never paste secrets/tokens).
- Cousins → semgrep · bandit · sonarcloud · snyk.
- Bind absolute paths honestly → rea-evidence-explained.
- Do not invent a
inspect_codeqlAPI REA never called.
Minimal path
# authorized CodeQL codeql-config.yml / query suites (+ charts you hold)
# quote selected identity labels into case notes (never live secrets)
# cousins → peer lanes above
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_codeql .
Compare
| Artifact | Honest posture |
|---|---|
| query-suite / database pins | CodeQL stack identity facts |
| Peer | rea-semgrep |
| Peer | rea-bandit |
| Not this | rea-sonarcloud (SonarCloud zoom) |
| Evidence binder | rea-evidence-explained |
Config literacy notes (authorized trees)
- Quote selected query-suite names, language packs, and database path labels only — enough for most Evidence binders.
- GITHUB_TOKEN and private database paths are secrets — record key names only.
- Keep CodeQL stack identity distinct from Semgrep / Bandit trees in case notes.
- Chart image tag pins are identity Evidence — label them separately from cousin pages.
- Select keys are useful inventory — quote them without inventing REA helpers for live CodeQL scans.
Scope we will not cover
- No inventing
inspect_codeql/ automatic scans against foreign repos. - No credential theft from GITHUB_TOKEN or private databases.
- No pirate redistribution of proprietary CodeQL trees.
- No crack framing via CodeQL pins.
- No cookbooks that weaken SAST policy on foreign accounts.
- No using CodeQL as an unauthorized SAST-recon guide against repos you do not own.
Honest limits
RepoRead documents config literacy — how authorized CodeQL trees relate to Evidence — not a full CodeQL query course. Prefer upstream CodeQL docs; use rea-semgrep for Semgrep peers. When REA 6.7.0 has no dedicated helper, quote the pins you opened and stay on documented archive/package lanes.
RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.
FAQ
How is this different from rea-semgrep / rea-bandit / rea-sonarcloud / rea-snyk?
rea-semgrep covers Semgrep. rea-bandit covers Bandit. rea-sonarcloud covers SonarCloud. rea-snyk covers Snyk. This page zooms on CodeQL SAST stack identity — it does not overwrite those pages.
Is there inspect_codeql in 6.7.0?
Not assumed. Quote codeql-config.yml / query-suite / database path pins you actually open, then use documented package/archive lanes. Do not invent inspect_codeql.
Does REA call CodeQL APIs or steal tokens?
No. Local trees only. Redact GITHUB_TOKEN and private database paths; do not treat REA as a CodeQL runner. No credential theft.
How should I label Evidence vs cousin trees?
Label Evidence by the file present. Keep CodeQL stack identity separate from rea-semgrep and rea-bandit.
npm version checked?
rea-agents 6.7.0 (re-checked 2026-10-24).