pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/pre-commit/pre-commit-hooks/pull/1220

bd78641c0a1f3e0.css" /> Add custom secret detection pre commit hook by StenLeinasaar · Pull Request #1220 · pre-commit/pre-commit-hooks · GitHub
Skip to content

Add custom secret detection pre commit hook#1220

Closed
StenLeinasaar wants to merge 2 commits intopre-commit:mainfrom
StenLeinasaar:FEATURE-detect-secrets-from-custom-regex
Closed

Add custom secret detection pre commit hook#1220
StenLeinasaar wants to merge 2 commits intopre-commit:mainfrom
StenLeinasaar:FEATURE-detect-secrets-from-custom-regex

Conversation

@StenLeinasaar
Copy link
Copy Markdown

Hook allows taking in a txt file with regex patterns for people to define their custom secrets or token structures.

In addition allows flexibility to include newly emerging API key structures or vendor tokens with regex pattern.

More customizable and modifiable than detecting private key or aws credentials.

Essentially can allow defining azure, digital ocean, gcp, or any provider's token structure.

@asottile
Copy link
Copy Markdown
Member

in the future please discuss features before wasting time on them

this entire hook is obsoleted by pygrep which is built in to pre-commit

@asottile asottile closed this Dec 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy