REA cargo-audit notes (unofficial)

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

cargo-audit trees (audit.toml / Cargo.lock / ignore advisory ID pins) record Rust SCA audit identity. In REA 6.7.x, treat selected ignore and advisory labels as Evidence beside archive/package routes — complementing pip-audit / npm audit / OSV-Scanner cousins without inventing APIs. Distinct from rea-pip-audit (Rust ≠ Python) and rea-osv-scanner (cargo-audit ≠ multi-ecosystem OSV). Preferred rea-semgrep-pro skipped (near-dupe of live rea-semgrep); this SWAP uses free backup rea-cargo-audit.

Mental model

  1. Authorize the cargo-audit config tree (+ packaged charts you hold).
  2. Quote selected identity labels you actually see (never paste secrets/tokens).
  3. Cousins → pip-audit · npm-audit · osv-scanner · snyk.
  4. Bind absolute paths honestly → rea-evidence-explained.
  5. Do not invent a inspect_cargo_audit API REA never called.

Minimal path

# authorized cargo-audit audit.toml / Cargo.lock (+ 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_cargo_audit .

Compare

ArtifactHonest posture
advisory / ignore pinscargo-audit stack identity facts
Peerrea-pip-audit
Peerrea-osv-scanner
Not thisrea-semgrep (Semgrep zoom; avoided near-dupe)
Evidence binderrea-evidence-explained

Config literacy notes (authorized trees)

  • Quote selected advisory IDs, ignore lists, and registry hostnames only — enough for most Evidence binders.
  • Registry tokens and private advisory DB paths are secrets — record key names only.
  • Keep cargo-audit stack identity distinct from pip-audit / OSV 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 cargo-audit scans.

Scope we will not cover

  • No inventing inspect_cargo_audit / automatic scans against foreign repos.
  • No credential theft from registry tokens or private advisory DBs.
  • No pirate redistribution of proprietary cargo-audit trees.
  • No crack framing via cargo-audit pins.
  • No cookbooks that weaken SCA policy on foreign accounts.
  • No using cargo-audit as an unauthorized SCA-recon guide against repos you do not own.

Honest limits

RepoRead documents config literacy — how authorized cargo-audit trees relate to Evidence — not a full Rust SCA course. Prefer upstream cargo-audit docs; use rea-osv-scanner for OSV 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-pip-audit / rea-npm-audit / rea-osv-scanner / rea-snyk?

rea-pip-audit covers pip-audit. rea-npm-audit covers npm audit. rea-osv-scanner covers OSV-Scanner. rea-snyk covers Snyk. This page zooms on cargo-audit Rust SCA stack identity — it does not overwrite those pages.

Is there inspect_cargo_audit in 6.7.0?

Not assumed. Quote audit.toml / Cargo.lock / ignore advisory ID pins you actually open, then use documented package/archive lanes. Do not invent inspect_cargo_audit.

Does REA call cargo-audit APIs or steal tokens?

No. Local trees only. Redact registry tokens and private advisory DB paths; do not treat REA as a cargo-audit runner. No credential theft.

How should I label Evidence vs cousin trees?

Label Evidence by the file present. Keep cargo-audit stack identity separate from rea-pip-audit and rea-osv-scanner.

npm version checked?

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

Sources