Add pre-commit to yadm
This commit is contained in:
parent
0b69eff54b
commit
b8b0af0881
3 changed files with 10 additions and 0 deletions
1
.bin/.gitignore
vendored
Normal file
1
.bin/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
host-mode
|
4
.bin/pre-commit-yadm
Executable file
4
.bin/pre-commit-yadm
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
export GIT_DIR="$HOME/.local/share/yadm/repo.git"
|
||||
pre-commit $@ -c .config/pre-commit-config.yaml
|
5
.config/pre-commit-config.yaml
Normal file
5
.config/pre-commit-config.yaml
Normal file
|
@ -0,0 +1,5 @@
|
|||
repos:
|
||||
- repo: https://github.com/gitleaks/gitleaks
|
||||
rev: v8.20.1
|
||||
hooks:
|
||||
- id: gitleaks
|
Loading…
Reference in a new issue