REA gosec notes (unofficial)

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

gosec trees (.gosec.json / rule / exclude / severity pins) record Go SAST identity. In REA 6.7.x, treat selected rule and exclude labels as Evidence beside archive/package routes — complementing Bandit / Semgrep / CodeQL cousins without inventing APIs. Distinct from rea-bandit (Go ≠ Python) and rea-semgrep (gosec ≠ Semgrep). Preferred slug kept free — KEEP.

Mental model

  1. Authorize the gosec config tree (+ packaged charts you hold).
  2. Quote selected identity labels you actually see (never paste secrets/tokens).
  3. Cousins → bandit · semgrep · codeql · snyk.
  4. Bind absolute paths honestly → rea-evidence-explained.
  5. Do not invent a inspect_gosec API REA never called.

Minimal path

# authorized gosec .gosec.json / rule packs (+ 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_gosec .

Compare

ArtifactHonest posture
rule / exclude pinsgosec stack identity facts
Peerrea-bandit
Peerrea-semgrep
Not thisrea-codeql (CodeQL zoom)
Evidence binderrea-evidence-explained

Config literacy notes (authorized trees)

  • Quote selected rule IDs, exclude paths, and severity floors only — enough for most Evidence binders.
  • Tokens and private config paths are secrets — record key names only.
  • Keep gosec stack identity distinct from Bandit / Semgrep 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 gosec scans.

Scope we will not cover

  • No inventing inspect_gosec / automatic scans against foreign repos.
  • No credential theft from tokens or private configs.
  • No pirate redistribution of proprietary gosec trees.
  • No crack framing via gosec pins.
  • No cookbooks that weaken SAST policy on foreign accounts.
  • No using gosec as an unauthorized SAST-recon guide against repos you do not own.

Honest limits

RepoRead documents config literacy — how authorized gosec trees relate to Evidence — not a full Go SAST course. Prefer upstream gosec docs; use rea-bandit for Bandit 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-bandit / rea-semgrep / rea-codeql / rea-snyk?

rea-bandit covers Bandit. rea-semgrep covers Semgrep. rea-codeql covers CodeQL. rea-snyk covers Snyk. This page zooms on gosec Go SAST stack identity — it does not overwrite those pages.

Is there inspect_gosec in 6.7.0?

Not assumed. Quote .gosec.json / rule / exclude / severity pins you actually open, then use documented package/archive lanes. Do not invent inspect_gosec.

Does REA call gosec APIs or steal tokens?

No. Local trees only. Redact tokens and private config paths; do not treat REA as a gosec runner. No credential theft.

How should I label Evidence vs cousin trees?

Label Evidence by the file present. Keep gosec stack identity separate from rea-bandit and rea-semgrep.

npm version checked?

rea-agents 6.7.0 (re-checked 2026-10-24).

Sources