Skip to content

Commit

Permalink
add git-secrets check to pre-commit hook (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
rbbarad authored Mar 29, 2023
1 parent c05473e commit 2e99eec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
"pre-commit": "(git secrets --register-aws || (echo 'Please install git-secrets https://github.com/awslabs/git-secrets to check for accidentally commited secrets!' && exit 1)) && git secrets --pre_commit_hook -- \"$@\" && pretty-quick --staged"
}
}
}

0 comments on commit 2e99eec

Please sign in to comment.