Skip to main content

ggshield secret scan path

Description#

Scan files or directories.

ggshield secret scan path [OPTIONS] <PATHS>

Options#

  • -r, --recursive: scan directory recursively
  • -y, --yes: confirm recursive scan

ggshield global options#

  • -h, --help: display detailed help
  • --json: output results in JSON [default:false]

Examples#

# scan a file$ ggshield secret scan path my_repo/my_file.py
# scan a directory recursively$ ggshield secret scan path --recursive my_repo/