Add Linux install instructions for gitleaks

This commit is contained in:
2026-04-10 15:49:10 +02:00
parent 8d06a737f1
commit 4112d30a3e
2 changed files with 8 additions and 4 deletions
+6 -3
View File
@@ -18,7 +18,7 @@ cp .env.example .env
# Edit .env with your provider, API key, workspace path, git config
# Install git hooks (secret scanning)
brew install gitleaks # one-time
brew install gitleaks # macOS / Linuxbrew
./setup-hooks.sh
# Build and run
@@ -174,8 +174,11 @@ A [gitleaks](https://github.com/gitleaks/gitleaks) pre-commit hook prevents acci
### Setup
```bash
brew install gitleaks # one-time install
./setup-hooks.sh # installs the pre-commit hook
# macOS / Linuxbrew
brew install gitleaks
# Debian/Ubuntu (download binary)
curl -sSL https://github.com/gitleaks/gitleaks/releases/latest/download/gitleaks_$(uname -s)_$(uname -m).tar.gz | sudo tar -xz -C /usr/local/bin gitleaks
```
The hook runs automatically on every `git commit`. If gitleaks isn't installed, the hook prints a warning and allows the commit (no hard dependency on collaborators).