REA Semgrep notes (unofficial)

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

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

  1. Authorize the Semgrep config tree (+ packaged configs you hold).
  2. Quote selected ruleset ids / severity / path exclude labels you actually see (never paste secrets or tokens).
  3. Cousins → checkov-yml · gitleaks-toml · pre-commit-config · github-actions.
  4. Bind absolute paths honestly → rea-evidence-explained.
  5. Do not invent a inspect_semgrep_yml API 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

ArtifactHonest posture
Semgrep .semgrep.ymlSAST ruleset/severity/exclude identity facts
Peerrea-checkov-yml
Peerrea-gitleaks-toml
Not thisrea-pre-commit-config (hook runner)
Evidence binderrea-evidence-explained

Config literacy notes (authorized trees)

  • Quote ruleset ids, selected severity mappings, and path exclude globs — 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 / languages blocks 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).

Sources