Skip to content

Commit

Permalink
chore: add pre-commit hook to prevent some sensitive data leaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ariwk authored Oct 12, 2024
1 parent 0d0ebcd commit 620d153
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 620d153

Please sign in to comment.