Loading...
Loading...
Run Gitleaks to detect hardcoded secrets in git repositories. Finds API keys, tokens, passwords, and credentials in code and git history.
npx skill4agent add vchirrav/owasp-secure-coding-md secret-scan-gitleaksbrew install gitleaksgitleaks versiongitleaks detect --source=<path> --no-git --report-format=json --report-path=gitleaks-results.jsongitleaks detect --source=<path> --report-format=json --report-path=gitleaks-results.json--verbose--config=<path-to-.gitleaks.toml>gitleaks protect --staged --report-format=json| # | Rule | Secret (redacted) | File:Line | Commit | Author | Date |
|---|------|--------------------|-----------|--------|--------|------|IMPORTANT: Always redact secret values — show only first 4 and last 2 characters.
.env.gitleaks.toml