Skip to content

Commit

Permalink
Merge pull request awslabs#82 from enabokov/exit-code-register-aws
Browse files Browse the repository at this point in the history
Add exit code to register_aws
  • Loading branch information
mtdowling committed Aug 10, 2018
2 parents e324284 + 578c82f commit 1b5125d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions git-secrets
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,12 @@ register_aws() {
add_config 'secrets.patterns' "${opt_quote}${aws}(ACCOUNT|account|Account)_?(ID|id|Id)?${opt_quote}${connect}${opt_quote}[0-9]{4}\-?[0-9]{4}\-?[0-9]{4}${opt_quote}"
add_config 'secrets.allowed' 'AKIAIOSFODNN7EXAMPLE'
add_config 'secrets.allowed' "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"

if [[ $? == 0 ]]; then
echo 'OK'
fi

exit $?
}

aws_provider() {
Expand Down

0 comments on commit 1b5125d

Please sign in to comment.