Skip to content

Commit a6b6c59

Browse files
committed
Add pre-commit hook check-zip-file-is-not-committed
Zip files should not be allowed in the repository as they are hard to track and have security implications.
1 parent 867c93d commit a6b6c59

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ repos:
2626
files: \.(json|md|ya?ml)$
2727
language: node
2828
additional_dependencies: ["prettier@3.6.2"]
29+
- id: check-zip-file-is-not-committed
30+
name: check no zip files are committed
31+
description: Zip files are not allowed in the repository
32+
language: fail
33+
entry: |
34+
Zip files are not allowed in the repository as they are hard to
35+
track and have security implications. Please remove the zip file from the repository.
36+
files: \.zip$
2937
- repo: https://github.com/gitleaks/gitleaks
3038
rev: v8.27.2
3139
hooks:

0 commit comments

Comments
 (0)