14 lines
300 B
Plaintext
Executable File
14 lines
300 B
Plaintext
Executable File
npm run lint
|
|
|
|
# Gitleaks secret scanning
|
|
if command -v gitleaks > /dev/null 2>&1; then
|
|
gitleaks protect --verbose --staged
|
|
if [ $? -eq 1 ]; then
|
|
echo ""
|
|
echo "❌ Secrets detected in staged files!"
|
|
echo "Please remove sensitive data before committing."
|
|
echo ""
|
|
exit 1
|
|
fi
|
|
fi
|