Skip to content

Dev/pre commit #456

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 23, 2025
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