REA CodeQL notes (unofficial)

Last updated: · By the RepoRead editorial team · Unofficial guide
Quick answer

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

  1. Authorize the CodeQL config tree (+ packaged charts you hold).
  2. Quote selected identity labels you actually see (never paste secrets/tokens).
  3. Cousins → semgrep · bandit · sonarcloud · snyk.
  4. Bind absolute paths honestly → rea-evidence-explained.
  5. Do not invent a inspect_codeql API 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

ArtifactHonest posture
query-suite / database pinsCodeQL stack identity facts
Peerrea-semgrep
Peerrea-bandit
Not thisrea-sonarcloud (SonarCloud zoom)
Evidence binderrea-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).

Sources