Search Brigade

Search Brigade pages and docs.

guard

brigade guard is the CLI for the content guard scanner embedded in brigade-cli. The same packaged scanner and policies back brigade scrub, so a fresh Brigade install can scan without a separate content-guard checkout.

Set CONTENT_GUARD_DIR only when you intentionally want Brigade to run an external content-guard checkout instead of the embedded brigade.guard package. Leaving it unset is the default path.

Embedded scanner commands

brigade guard scan README.md
brigade guard scan src/content/docs --policy public-content
printf '%s\n' "$DRAFT_TEXT" | brigade guard scan --policy public-content

Git and publish commands

brigade guard git
brigade guard git --all-tracked
brigade guard git --history --range origin/main..HEAD
brigade guard publish-check
brigade guard publish-check --pr-body .brigade/pr-body.md
brigade guard publish-check --all-tracked --commit-range origin/main..HEAD

Scrub shortcut

brigade scrub --target . --policy public-repo is the repo-level shortcut. It uses the embedded scanner by default, resolves packaged policies first, and writes a summary receipt at .brigade/scrub/latest.json unless --no-receipt is passed.

brigade scrub --target .
brigade scrub --target . --policy public-content
brigade scrub --target . --policy public-repo --dry-run