Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
repos:
- repo: https://github.com/gitleaks/gitleaks
rev: v8.24.2
hooks:
- id: gitleaks
args: ["--config=.gitleaks.toml"]

- repo: local
hooks:
- id: gitleaks
name: Detect hardcoded secrets
description: Ensures no secrets are committed
entry: gitleaks protect
args: ["--config=.gitleaks.toml", "--staged", "--verbose"]
language: system
pass_filenames: false
stages: [pre-commit]

- id: check-commit-message
name: Check commit message for Chinese characters
description: Ensures commit messages do not contain Chinese characters
Expand Down
Loading