fix: Remove car_id property from adminAddVehicle call to fix TypeScript error

This commit is contained in:
AutonetSellCar Deploy
2026-02-01 21:16:03 +09:00
parent 5881126408
commit b340d338ff
31 changed files with 7071 additions and 1 deletions

View File

@@ -0,0 +1,24 @@
#!/bin/bash
# Git Pre-Push Hook - Security Audit
# Install: cp scripts/git-hooks/pre-push .git/hooks/ && chmod +x .git/hooks/pre-push
echo "Running security audit before push..."
cd frontend
AUDIT=$(npm audit --json 2>/dev/null || true)
CRITICAL=$(echo "$AUDIT" | grep -o '"critical":[0-9]*' | head -1 | cut -d: -f2)
if [ "${CRITICAL:-0}" -gt 0 ]; then
echo ""
echo "========================================"
echo " PUSH BLOCKED: Critical vulnerabilities found!"
echo "========================================"
npm audit 2>/dev/null | grep -A 3 "critical"
echo ""
echo "Run 'npm audit fix' or update packages manually."
echo "To bypass: git push --no-verify"
exit 1
fi
echo "Security check passed."
exit 0