scan
Find secrets in files or directories without modifying anything.Usage
Examples
Scan a single file:Options
| Option | Description |
|---|---|
--ignore <pattern> | Glob pattern to exclude (can use multiple times) |
--no-recursive | Don’t scan subdirectories |
CI/CD usage
scan exits with code 1 if secrets are found:
Supported file types
| Type | Extensions |
|---|---|
| JavaScript/TypeScript | .js, .jsx, .ts, .tsx, .mjs |
| Python | .py |
| Go | .go |
| Rust | .rs |
| Config | .json, .yaml, .yml, .toml |
| Environment | .env, .env.* |