You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .pre-commit-config.yaml
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,20 @@ repos:
29
29
pass_filenames: false
30
30
files: \.go$
31
31
32
+
- id: block-secrets-folder
33
+
name: Block docker/secrets/ directory
34
+
entry: bash -c 'if git diff --cached --name-only | grep -q "^docker/secrets/"; then echo "ERROR - Files in docker/secrets/ should never be committed!"; exit 1; fi'
35
+
language: system
36
+
pass_filenames: false
37
+
always_run: true
38
+
39
+
- id: block-test-data
40
+
name: Block test data files
41
+
entry: bash -c 'if git diff --cached --name-only | grep -qE "^docs/.*\.json$"; then echo "ERROR - Test data files in docs/ should never be committed!"; exit 1; fi'
0 commit comments