chore: setup devfiles

This commit is contained in:
Alexander Navarro 2025-02-05 11:59:43 -03:00
parent 7c6cd6967a
commit 981e35124a
11 changed files with 109 additions and 17 deletions

0
.devfiles/hooks/.gitkeep Normal file
View file

View file

@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -euxo pipefail
cog verify --file "$1"

View 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