detect-secrets
brew install detect-secrets
v1.5.0_9
Apache-2.0
Enterprise friendly way of detecting and preventing secrets in code
397
30-day installs · #1940
1.5k
90-day · #1839
5.9k
365-day · #1809
4.6k
★ GitHub stars · updated 4mo ago
Runtime dependencies
Links
- https://github.com/Yelp/detect-secrets
- GitHub: Yelp/detect-secrets
- Brew formula source: Formula/d/detect-secrets.rb
Raw metadata
{
"aliases": [],
"alternatives": [],
"build_dependencies": [],
"categories": [],
"caveats": null,
"conflicts_with": [],
"dependencies": [
"certifi",
"libyaml",
"python@3.14"
],
"deprecated": 0,
"deprecation_reason": null,
"desc": "Enterprise friendly way of detecting and preventing secrets in code",
"disable_reason": null,
"disabled": 0,
"enrichment_fetched_at": "2026-06-20T23:36:55+00:00",
"first_seen": "2026-06-20T23:34:18+00:00",
"full_name": "detect-secrets",
"github_default_branch": "master",
"github_last_commit_at": "2026-04-02T17:10:40Z",
"github_readme_excerpt": "[](https://github.com/Yelp/detect-secrets/actions/workflows/ci.yml?query=branch%3Amaster++)\n[](https://badge.fury.io/py/detect-secrets)\n[](https://formulae.brew.sh/formula/detect-secrets)\n[](https://github.com/Yelp/detect-secrets/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22+)\n[](https://www.againstmalaria.com/donation.aspx)\n\n# detect-secrets\n\n## About\n\n`detect-secrets` is an aptly named module for (surprise, surprise) **detecting secrets** within a\ncode base.\n\nHowever, unlike other similar packages that solely focus on finding secrets, this package is\ndesigned with the enterprise client in mind: providing a **backwards compatible**, systematic\nmeans of:\n\n1. Preventing new secrets from entering the code base,\n2. Detecting if such preventions are explicitly bypassed, and\n3. Providing a checklist of secrets to roll, and migrate off to a more secure storage.\n\nThis way, you create a\n[separation of concern](https://en.wikipedia.org/wiki/Separation_of_concerns):\naccepting that there may *currently* be secrets hiding in your large repository\n(this is what we refer to as a _baseline_), but preventing this issue from getting any larger,\nwithout dealing with the potentially gargantuan effort of moving existing secrets away.\n\nIt does this by running periodic diff outputs against heuristically crafted regex statements,\nto identify whether any *new* secret has been committed. This way, it avoids the overhead of\ndigging through all git history, as well as the need to scan the entire repository every time.\n\nFor a look at recent changes, ",
"github_repo": "Yelp/detect-secrets",
"github_stars": 4553,
"github_topics": [],
"homepage": "https://github.com/Yelp/detect-secrets",
"homepage_og_description": null,
"homepage_og_image": null,
"homepage_title": null,
"installs_30d": 397,
"installs_365d": 5878,
"installs_90d": 1455,
"keg_only": 0,
"keg_only_reason": null,
"last_seen": "2026-06-20T23:34:18+00:00",
"license": "Apache-2.0",
"llm_generated_at": null,
"llm_model": null,
"name": "detect-secrets",
"oldnames": [],
"one_liner": null,
"optional_dependencies": [],
"rank_30d": 1940,
"rank_365d": 1809,
"rank_90d": 1839,
"raw_hash": "2a0d3cd14df69502",
"recommended_dependencies": [],
"revision": 9,
"ruby_source_path": "Formula/d/detect-secrets.rb",
"tap": "homebrew/core",
"test_dependencies": [],
"uses_from_macos": [],
"version_head": "HEAD",
"version_stable": "1.5.0",
"versioned_formulae": [],
"why_use_this": null
}