Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Cthulhu_
· 8y ago · 0 comments
Is there a similar tool that can run as a pre-commit hook and prevent it from happening in the first place / after this scan?
Comments
[–]
burdzwastaken
8y ago
I wrote one using the same difference library a few months ago:
https://github.com/burdzwastaken/git-rid-of-keys
.
[–]
ashurov
8y ago
git-secrets from the AWS team:
https://github.com/awslabs/git-secrets
[–]
dewiz
8y ago
I don’t know of a tool in particular, but it’s not too hard to scan for patterns and high entropy, blocking the commit
[–]
JWoolfenden
8y ago
Look at pre-commit.com, this had lots of supported hooks including preventing secrets being added