REA Semgrep notes (unofficial)
Semgrep config trees (.semgrep.yml / semgrep.yml / .semgrep/) record SAST rule identity (rules, severity, exclude paths). In REA 6.7.x, treat selected ruleset/severity/exclude labels as Evidence beside archive/package routes — complementing Checkov/pre-commit cousins without inventing APIs.
Mental model
- Authorize the Semgrep config tree (+ packaged configs you hold).
- Quote selected ruleset ids /
severity/ pathexcludelabels you actually see (never paste secrets or tokens). - Cousins → checkov-yml · gitleaks-toml · pre-commit-config · github-actions.
- Bind absolute paths honestly → rea-evidence-explained.
- Do not invent a
inspect_semgrep_ymlAPI REA never called.
Minimal path
# authorized .semgrep.yml / semgrep.yml (+ artifact you hold)
# quote selected ruleset / severity / exclude labels into case notes
# cousins → peer Checkov / Gitleaks / pre-commit / Actions lanes
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_semgrep_yml .
Compare
| Artifact | Honest posture |
|---|---|
| Semgrep .semgrep.yml | SAST ruleset/severity/exclude identity facts |
| Peer | rea-checkov-yml |
| Peer | rea-gitleaks-toml |
| Not this | rea-pre-commit-config (hook runner) |
| Evidence binder | rea-evidence-explained |
Config literacy notes (authorized trees)
- Quote ruleset ids, selected
severitymappings, and pathexcludeglobs — enough for most Evidence binders. - Semgrep App tokens and deployment slugs are secrets — record key names only.
- Keep Semgrep configs distinct from Gitleaks / Checkov trees in case notes.
- Custom rule
paths/languagesblocks are identity Evidence — label them separately from cousin pages. - Select keys are useful inventory — quote them without inventing REA helpers for
semgrep --config.
Scope we will not cover
- No inventing
inspect_semgrep_yml/ automatic scans against foreign codebases. - No credential theft from App tokens or remote URIs.
- No pirate redistribution of proprietary Semgrep rule packs.
- No crack framing via Semgrep pins.
- No cookbooks that weaken remote auth on foreign scanner accounts.
- No using Semgrep exclude lists as an unauthorized security-control bypass guide against systems you do not own.
Honest limits
RepoRead documents config literacy — how authorized Semgrep trees relate to Evidence — not a full Semgrep course. Prefer upstream Semgrep docs for rules and packs. 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-checkov-yml / rea-pre-commit-config / rea-gitleaks-toml?
rea-checkov-yml covers Checkov. rea-pre-commit-config covers pre-commit hooks. rea-gitleaks-toml covers Gitleaks. This page zooms on Semgrep rules/config identity — it does not overwrite those pages.
Is there inspect_semgrep_yml in 6.7.0?
Not assumed. Quote ruleset / severity / exclude labels you actually open, then use documented package/archive lanes. Do not invent inspect_semgrep_yml.
Does REA call Semgrep cloud APIs or steal scanner credentials?
No. Local trees only. Redact app tokens, deployment slugs, and remote URIs; do not treat REA as a Semgrep runner. No credential theft.
How should I label Evidence vs other SAST configs?
Label Evidence by the file present. Keep .semgrep.yml / rule packs separate from rea-checkov-yml and rea-gitleaks-toml.
npm version checked?
rea-agents 6.7.0 (re-checked 2026-10-24).