Use the CLI
Review a project
Preview the files, run the checks and choose how results are shown or saved.
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.
grchero scan . --dry-runOutput
Local review preview (nothing is uploaded)
.github/workflows/deploy.yml
DockerfileRun the review
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
| Option | Behavior |
|---|---|
path | Project folder; defaults to the current folder |
--dry-run | List the selected files without running checks |
--include PATTERN | Replace configured include patterns; repeat for more |
--exclude PATTERN | Add an exclusion; exclusions always win |
--format text|json|sarif | Readable output, JSON, or SARIF for code-scanning tools |
--baseline FILE | An earlier JSON report; only new observations count for --fail-on |
--output FILE | Save a JSON report to a new file; never overwrites |
--fail-on none|low|medium|high | Exit 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.