3 ms·
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?
by Cthulhu_ 8y ago
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?
- ashurov 8y agogit-secrets from the AWS team: https://github.com/awslabs/git-secrets https://github.com/awslabs/git-secrets
- dewiz 8y agoI don’t know of a tool in particular, but it’s not too hard to scan for patterns and high entropy, blocking the commit
- burdzwastaken 8y agoI wrote one using the same difference library a few months ago: https://github.com/burdzwastaken/git-rid-of-keys https://github.com/burdzwastaken/git-rid-of-keys.
- JWoolfenden 8y agoLook at pre-commit.com, this had lots of supported hooks including preventing secrets being added