| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
repoclean — Git repo hygiene scanner + secrets detector + pre-commit gatekeeper.
It prevents:
It can also act as a gatekeeper:
Most leaks don’t happen because people are careless — they happen because shipping is fast and repo hygiene is manual.
repoclean is a small CLI tool that acts like a repo bodyguard:
pip install repoclean-clirepoclean scan
repoclean secrets
repoclean gate## Secrets scanner (v0.6.0)
repoclean detects:
- Private key markers (`BEGIN PRIVATE KEY`)
- GitHub tokens (`ghp_`, `github_pat_`, `gho_`)
- Slack tokens (`xoxb-...`)
- Stripe live keys (`sk_live_...`)
- Telegram bot tokens (`123456:ABC...`)
- JWT tokens
- High entropy secret candidates in assignment contextsrepoclean install-hook --mode strict
repoclean ci
repoclean scan --fail-on sensitive,large
repoclean secrets --failrepoclean scan
repoclean secrets --fail
repoclean fix --yes
repoclean install-hook --mode strictrepoclean secrets --min-severity high
repoclean secrets --fail-on critical
repoclean ci --jsonrepoclean scanrepoclean initCreate a .repoclean.toml config file:
repoclean config initPreview:
repoclean fix --dry-run --verboseApply cleanup:
repoclean fix --yes### Unstage instead of delete
```bash
repoclean fix --staged-only --unstage --yesrepoclean secretsFail mode (useful for CI and hooks):
repoclean secrets --failrepoclean install-hook --mode strictStrict mode blocks commits on:
repoclean install-hook --mode warnWarn mode blocks only secrets
repoclean uninstall-hookrepoclean hook status
repoclean hook print --mode warn
repoclean hook print --mode strict| Back | FazBrowse Home | New Git URL |