generated from alecodes/base-template
chore: initial commit
This commit is contained in:
commit
e23a81c78e
17 changed files with 592 additions and 0 deletions
0
.devfiles/hooks/.gitkeep
Normal file
0
.devfiles/hooks/.gitkeep
Normal file
5
.devfiles/hooks/commit-msg.sh
Normal file
5
.devfiles/hooks/commit-msg.sh
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
cog verify --file "$1"
|
||||
14
.devfiles/hooks/pre-commit.sh
Normal file
14
.devfiles/hooks/pre-commit.sh
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
set -euxo pipefail
|
||||
|
||||
root="$(git rev-parse --show-toplevel)"
|
||||
|
||||
cd "$root"
|
||||
|
||||
gitleaks git
|
||||
|
||||
# Only validate encrypted files if we are tracking any
|
||||
if [[ -e .ageboxreg.yml ]]; then
|
||||
agebox validate --no-decrypt
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue