awslabs / git-secrets

Prevents you from committing secrets and credentials into git repositories
Apache License 2.0
12.36k stars 1.17k forks source link

Feature Request: Mask secret in the output of `git secrets` command #187

Open suzuki-shunsuke opened 3 years ago

suzuki-shunsuke commented 3 years ago

The command git secrets outputs the secrets, so it is difficult to use this in CI because the secrets are leaked as the CI log.

$ git secrets --scan -r .
./foo.txt:8:  AWS_ACCESS_KEY_ID: *** # the secret is outputted!
...

So how about adding the option to mask secrets in the output?

Thank you.