Skip to content

Use the CLI

Review a project

Preview the files, run the checks and choose how results are shown or saved.

On this page

Preview before reviewing

By default a review reads Dockerfiles (Dockerfile, *.Dockerfile, Dockerfile.*) and GitHub Actions workflows. Environment and source files need an explicit --include, so they are never swept in by accident.

Terminal
grchero scan . --dry-run
Output
Local review preview (nothing is uploaded)
  .github/workflows/deploy.yml
  Dockerfile

Run the review

Terminal
grchero scan .

# Also review a local environment file
grchero scan . --include '.env.production'

Note: Quote patterns so your shell passes them to the CLI unchanged.

Options

OptionBehavior
pathProject folder; defaults to the current folder
--dry-runList the selected files without running checks
--include PATTERNReplace configured include patterns; repeat for more
--exclude PATTERNAdd an exclusion; exclusions always win
--format text|json|sarifReadable output, JSON, or SARIF for code-scanning tools
--baseline FILEAn earlier JSON report; only new observations count for --fail-on
--output FILESave a JSON report to a new file; never overwrites
--fail-on none|low|medium|highExit with 1 at or above this severity; default none

Bounded, predictable reviews

A review reads at most 40 files, 256 KiB per file and 1 MiB in total. If a limit is reached it stops with a clear message: narrow the folder or the patterns. Symlinks, generated and dependency folders, and binary files are skipped, and nothing is ever executed.

grcHero CLI 0.7.3. Local checks, human review, verifiable evidence.