Skip to content

Commit

Permalink
Merge pull request awslabs#72 from dhoer/adv-config
Browse files Browse the repository at this point in the history
Add advance configuration section to readme
  • Loading branch information
mtdowling authored Aug 10, 2018
2 parents 2333a55 + 87fce8b commit d8da475
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,45 @@ on each commit::




Advanced configuration
~~~~~~~~~~~~~~~~~~~~~~

Add a configuration template if you want to add hooks to all repositories you
initialize or clone in the future.

::

git secrets --register-aws --global


Add hooks to all your local repositories.

::

git secrets --install ~/.git-templates/git-secrets
git config --global init.templateDir ~/.git-templates/git-secrets


Add custom providers to scan for security credentials.

::

git secrets --add-provider -- cat /path/to/secret/file/patterns


Before making public a repository
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

With git-secrets is also possible to scan a repository including all revisions:

::

git secrets --scan-history




Options
-------

Expand Down

0 comments on commit d8da475

Please sign in to comment.