Коммит 9566cc8b создал по автору Radch-enko's avatar Radch-enko
Просмотр файлов

Add pre-commit hook and update .gitignore for streamlined development

- Introduced a Gitleaks-based pre-commit hook to prevent committing secrets.
- Updated `.gitignore` to exclude outdated scripts and deployment files.
- Added a script to install Git hooks for consistent developer workflows.
владелец 98756fd3
......@@ -76,11 +76,9 @@ coverage/
/backend/app/src/main/resources/.env.properties
/backend/app/src/main/resources/google-credentials.json
/oldBackendExample
/scripts
/backend/app/src/main/resources/firebase-credentials.json
/keystore/
/oldProject/
/clients/tablet/composeApp/google-services.json
/local.properties
/deploy-backend.sh
/deploy/
#!/bin/sh
echo "🔍 Running Gitleaks scan..."
gitleaks detect --source . --log-opts "--all" --verbose
if [ $? -ne 0 ]; then
echo "🚨 Gitleaks detected potential secrets in staged changes. Commit aborted."
exit 1
fi
echo "✅ Gitleaks passed. Proceeding with commit."
exit 0
\ Нет новой строки в конце файла
#!/bin/sh
cd ..
cp scripts/git-hooks/pre-commit.sh .git/hooks/pre-commit
chmod +x .git/hooks/pre-commit
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать