Skip to content
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

chore: add sensitive info check hook #163

Merged
merged 1 commit into from
Nov 25, 2021
Merged
Show file tree
Hide file tree
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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -227,3 +227,6 @@ deploy/helm/dist/
deploy/helm/api/templates/c_*.*
deploy/helm/saas/templates/c_*.*
deploy/helm/bk-user-stack/templates/c_*.*

# local hooks
pre_commit_hooks/
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
repos:
- repo: local
hooks:
- id: Name check
name: Check sensitive info
verbose: true
language: script
entry: pre_commit_hooks/rtx.sh
- id: IP check
name: Check sensitive info
verbose: true
language: script
entry: pre_commit_hooks/ip.sh
- id: isort
name: isort
language: python
Expand Down