Initial commit
This commit is contained in:
25
README.md
25
README.md
@@ -1,2 +1,25 @@
|
||||
# pre-commit-hook-ensure-sops
|
||||
pre-commit hook to ensure that files that should be encrypted with sops are
|
||||
|
||||
A [pre-commit](https://pre-commit.com/) hook to ensure that users don't
|
||||
accidentally check-in unencrypted files into a repository that uses
|
||||
[sops](https://github.com/mozilla/sops) to safely store encrypted secrets.
|
||||
|
||||
By default, any file with the word `secret` in its path is required to
|
||||
be encrypted with `sops`. This means any files under a directory
|
||||
named `secret` are also required to be encrypted. If you want to exempt
|
||||
specific files or directories from this requirement in your repository,
|
||||
use the `exclude` option in your `.pre-commit-config.yaml`. When pushing
|
||||
secrets to a repo, better safe than sorry :)
|
||||
|
||||
## Installation
|
||||
|
||||
Add this to your `.pre-commit-config.yaml`:
|
||||
|
||||
```yaml
|
||||
- repo: https://github.com/yuvipanda/pre-commit-hook-ensure-sops
|
||||
rev: v1.0
|
||||
hooks:
|
||||
- id: sops-encryption
|
||||
# Uncomment to exclude all markdown files from encryption
|
||||
# exclude: *.\.md
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user