Skip to content

Commit 5cf53b2

Browse files
authored
Add pre-commit hooks for detecting private key & AWS Creds (#236)
This is not bullet proof but will prevent us adding Secrets in some scenarios which is good enough.
1 parent 201c254 commit 5cf53b2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ repos:
66
- id: check-useless-excludes
77

88
- repo: https://github.com/pre-commit/pre-commit-hooks
9-
rev: v4.1.0
9+
rev: v4.2.0
1010
hooks:
1111
- id: check-merge-conflict
1212
- id: check-toml
@@ -15,6 +15,9 @@ repos:
1515
- id: end-of-file-fixer
1616
- id: mixed-line-ending
1717
- id: trailing-whitespace
18+
- id: detect-private-key
19+
- id: detect-aws-credentials
20+
args: ["--allow-missing-credentials"]
1821

1922
- repo: https://github.com/pre-commit/pygrep-hooks
2023
rev: v1.9.0

0 commit comments

Comments
 (0)