diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c7b2023..ed245ce 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,6 +16,19 @@ repos: - id: check-yaml - id: no-commit-to-branch - id: mixed-line-ending + - repo: local + hooks: + - id: sensitive-data-leak-urls + name: Sensitive data leak - URLs + entry: sbb\.ch\b + language: pygrep + types: [text] + exclude: \b(www\.|polarion-opensource@)sbb\.ch\b + - id: sensitive-data-leak-ue-numbers + name: Sensitive data leak - UE numbers + entry: ([uUeE]{1,2})\d{5,6} + language: pygrep + types: [text] - repo: https://github.com/zricethezav/gitleaks rev: v8.20.1 hooks: