Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
feat: removed binary and added pre-commit check to avoid putting binary
=df8a9d317d76
diff --git a/.husky/pre-commit b/.husky/pre-commitindex 87374798f1..a3ad23cdce 100755--- a/.husky/pre-commit+++ b/.husky/pre-commit@@ -3,6 +3,23 @@echo "🔥 Pre-commit hook is running!"+# Prevent committing binary files in backend-go/+binaries=""+for file in $(git diff --cached --name-only --diff-filter=ACM | grep '^backend-go/'); do+ if [ -f "$file" ]; then+ if file "$file" | grep -qE 'executable|binary|ELF|Mach-O'; then+ binaries="$binaries $file"+ fi+ fi+done+if [ -n "$binaries" ]; then+ echo "ERROR: Attempting to commit binary files in backend-go/:"+ echo "$binaries"+ echo ""+ echo "Remove them with: git reset HEAD <file>"+ exit 1+fi+# Check if infisical is installedif ! command -v infisical >/dev/null 2>&1; thenecho "\nError: Infisical CLI is not installed. Please install the Infisical CLI before committing.\n You can refer to the documentation at https://infisical.com/docs/cli/overview\n\n"diff --git a/backend-go/secret.test b/backend-go/secret.testdeleted file mode 100755index 497a3f6037..0000000000Binary files a/backend-go/secret.test and /dev/null differ