AWS 推出的工具,可以阻擋 AWS 的 Key 被傳到 Git 上:「awslabs/git-secrets」。可以看到說明:
git-secrets
scans commits, commit messages, and--no-ff
merges to prevent adding secrets into your git repositories. If a commit, commit message, or any commit in a--no-ff
merge history matches one of your configured prohibited regular expression patterns, then the commit is rejected.
算是小工具...