## Summary
Adds org-wide gitleaks secret-scanning in two layers:
1. **Local pre-commit hook** (`.githooks/pre-commit`) — blocks commits
containing potential secrets before they're even created. Enable with
`git config core.hooksPath .githooks`.
2. **CI backstop** (`.github/workflows/security.yml`) — calls the
reusable gitleaks workflow in `nomadkaraoke/.github`, scans every PR and
push to `main`.
Config: `.gitleaks.toml` extends the default gitleaks rules with a
dedicated Discord-webhook rule and an allowlist for known false-positive
paths (lockfiles, vendor/, node_modules/, Flutter `.dart_tool/`,
WordPress `wp-content/`, Python test fixtures, Firebase/GCP client API
keys).
## Why
Following the 2026-04-17 Discord webhook URL leak — a real webhook URL
sat in `nomadkaraoke/karaoke-gen`'s archived setup docs for ~9 months,
was scraped, and was used to push malware into the `#releases` channel.
Existing defenses: GitHub push protection (enabled on all public repos).
This PR adds the two missing layers (local pre-commit, CI).
## Test plan
- [ ] After merge, create a test commit with a fake Discord webhook URL
— the CI job should fail.
- [ ] Run `brew install gitleaks && git config core.hooksPath .githooks`
locally, then attempt the same commit — the pre-commit hook should block
it.
@coderabbitai ignore
🤖 Generated with [Claude Code](https://claude.com/claude-code)