REA Semgrep notes (unofficial)
Semgrep trees (.semgrep.yml / semgrep.yaml / ruleset / severity pins) record SAST and policy-as-code identity. In REA 6.7.x, treat selected ruleset and severity labels as Evidence beside archive/package routes — complementing Semgrep YAML / Checkov / KICS / Conftest cousins without inventing APIs. Distinct from rea-semgrep-yml (stack identity ≠ YAML depth) and rea-gatekeeper (SAST ≠ OPA admission). Preferred rea-gatekeeper already lived; this SWAP uses free backup rea-semgrep.
Mental model
- Authorize the Semgrep config tree (+ packaged charts you hold).
- Quote selected ruleset / severity / path-ignore labels you actually see (never paste App tokens or CI secrets).
- Cousins → semgrep-yml · checkov · kics · conftest.
- Bind absolute paths honestly → rea-evidence-explained.
- Do not invent a
inspect_semgrepAPI REA never called.
Minimal path
# authorized Semgrep .semgrep.yml / semgrep.yaml (+ charts you hold)
# quote selected ruleset / severity / path-ignore labels into case notes
# cousins → peer Semgrep YAML / Checkov / KICS / Conftest lanes
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_semgrep .
Compare
| Artifact | Honest posture |
|---|---|
| ruleset / severity pins | Semgrep stack identity facts |
| Peer | rea-semgrep-yml |
| Peer | rea-checkov |
| Not this | rea-gatekeeper (OPA admission zoom) |
| Evidence binder | rea-evidence-explained |
Config literacy notes (authorized trees)
- Quote selected ruleset names, severity floors, and path-ignore labels only — enough for most Evidence binders.
- Semgrep App tokens and CI secrets are secrets — record key names only.
- Keep Semgrep stack identity distinct from Semgrep YAML / Checkov / Gatekeeper 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 Semgrep scans.
Scope we will not cover
- No inventing
inspect_semgrep/ automatic scans against foreign repositories. - No credential theft from Semgrep App tokens or CI secrets.
- No pirate redistribution of proprietary Semgrep trees.
- No crack framing via Semgrep pins.
- No cookbooks that weaken SAST policy on foreign accounts.
- No using Semgrep as an unauthorized code-recon guide against repos you do not own.
Honest limits
RepoRead documents config literacy — how authorized Semgrep trees relate to Evidence — not a full SAST course. Prefer upstream Semgrep docs; use rea-semgrep-yml for YAML depth. 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-yml / rea-checkov / rea-kics / rea-conftest?
rea-semgrep-yml covers Semgrep YAML depth. rea-checkov covers Checkov. rea-kics covers KICS. rea-conftest covers Conftest. This page zooms on Semgrep SAST/policy stack identity — it does not overwrite those pages.
Is there inspect_semgrep in 6.7.0?
Not assumed. Quote .semgrep.yml / semgrep.yaml / ruleset / severity pins you actually open, then use documented package/archive lanes. Do not invent inspect_semgrep.
Does REA call Semgrep APIs or steal app tokens?
No. Local trees only. Redact Semgrep App tokens and CI secrets; do not treat REA as a Semgrep runner. No credential theft.
How should I label Evidence vs Semgrep YAML / Checkov / Gatekeeper trees?
Label Evidence by the file present. Keep Semgrep stack identity separate from rea-semgrep-yml and rea-checkov. Preferred rea-gatekeeper already lived; this SWAP uses free backup rea-semgrep.
npm version checked?
rea-agents 6.7.0 (re-checked 2026-10-24).