| Crates.io | nosecrets-cli |
| lib.rs | nosecrets-cli |
| version | 0.1.7 |
| created_at | 2025-12-19 16:53:32.662491+00 |
| updated_at | 2025-12-19 17:30:55.876318+00 |
| description | Fast, offline secret scanner for Git pre-commit hooks |
| homepage | |
| repository | https://github.com/casoon/nosecrets |
| max_upload_size | |
| id | 1995105 |
| size | 63,657 |
Fast, offline secret scanner for Git pre-commit hooks. Designed to be simple, fast, and safe for any repository.
cargo install nosecrets-cli
npm install -g @casoon/nosecrets
# Scan staged files
nosecrets scan --staged
# Scan a directory
nosecrets scan src/
# Interactive mode (add ignores)
nosecrets scan --staged --interactive
# Add ignore by fingerprint
nosecrets ignore nsi_abcdef123456
0: no blocking findings (only low or none)1: blocking findings (critical/high/medium)[ignore]
paths = [
"vendor/",
"node_modules/",
"*.lock",
]
[allow]
patterns = [
"EXAMPLE",
"changeme",
"YOUR_.*_HERE",
]
values = [
"AKIAIOSFODNN7EXAMPLE",
]
# Format: nsi_<hash> or nsi_<hash>:<path-glob>
nsi_a1b2c3d4e5f6
nsi_b2c3d4e5f6a7:src/config.py
api_key = "sk_test_xxx" # @nosecrets-ignore
api_key = "sk_test_xxx" # @nsi example key
Detects secrets from:
- repo: local
hooks:
- id: nosecrets
name: nosecrets
entry: nosecrets scan --staged
language: system
pass_filenames: false
nosecrets-core - Core scanning enginenosecrets-rules - Rule definitionsnosecrets-filter - Filtering logicnosecrets-report - Output formattingMIT