This project repo is no longer being maintained. For more information on code-gov repos, go to GSA/code-gov.
Repository for Code.gov git-secrets patterns and bootstrap script.
Prevents you from committing passwords and other sensitive information to a git repository.
code-gov.patterns
: File with pattern to search for with git-secrets.bootstrap-gitsecrets.sh
: script to help you bootstrap your usage of git-secrets. It will add all patterns to your global git config.
- Clone repository:
git clone [email protected]:presidential-innovation-fellows/code-gov-gitsecretpatterns.git
- Make sure that
bootstrap-gitsecrets.sh
is executable. If not make it so:chmod +x bootstrap-gitsecrets.sh
- Execute
bootstrap-gitsecrets.sh
:./bootstrap-gitsecrets.sh
- This will create
.git-secrets
directory in your home folder. - It will also copy
code-gov.patterns
to~/.git-secrets
- This will create
Go to the root directory of a local repository and test your patterns. You can execute git secrets --scan-history
or git secrets --scan <file>
to check if any of the patterns can be found.
Depending on the size of the repo's history git secrets --scan-history
can take some time.