From 8623215c691aaf46eeb00d0bab3babc5595a50aa Mon Sep 17 00:00:00 2001 From: John Bampton Date: Sun, 27 Jul 2025 06:39:44 +1000 Subject: [PATCH] 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. --- .pre-commit-config.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 386d651cd..400267fb5 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -25,6 +25,14 @@ repos: language: node additional_dependencies: ["prettier@3.6.2"] stages: [manual] + - id: check-zip-file-is-not-committed + name: disallow zip files + description: Zip files are not allowed in the repository + language: fail + entry: | + Zip files are not allowed in the repository as they are hard to + track and have security implications. Please remove the zip file from the repository. + files: \.zip$ - repo: https://github.com/gitleaks/gitleaks rev: v8.28.0 hooks: