Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for a configuration file that can contain the patterns, etc. and be included in the repo is desired. #211

Open
spkane opened this issue Jun 22, 2022 · 1 comment

Comments

@spkane
Copy link

spkane commented Jun 22, 2022

It would be very useful to support a config file, that can be pointed at (--config=./git-secrets.yaml), which can contain all configuration settings, including patterns. This way it can be included in the repo (if desired) and run via tools like pre-commit in a way that guarantees that the tool is configured properly, without requiring extra git config. This is especially useful in a CI/CD workflow.

@trantdai
Copy link

You can create a file called .secret.patterns in the root directory and add the regex into it. After run this command git secrets --add-provider -- cat .secret.patterns to add the patterns to git config.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants