Stage 4 · Security Tools
Gitleaks — secret scanning
Why it matters in 2027
Leaked passwords and API keys in Git are one of the most common causes of breaches. Gitleaks finds them before they are pushed.
What to learn
Must know
- What a secret leak is and why it is dangerous
- Scan a repo: gitleaks detect
- Scan before commit with a pre-commit hook
- Run Gitleaks in CI and fail the build
- What to do when a secret is found (rotate it!)
Good to know
- Allowlists and baselines
Loading questions…