Skip to content
Edit this page View source of this page

Gitleaks

Gitleaks looks for patterns that commonly indicate secrets, such as access tokens, in files or Git history. mise installs it for manual checks. The template's Prek suite and CI workflow do not run it automatically.

Choose what to scan

Run either command from the repository root. The first scans Git history and the second scans files in the working directory, including files you may not have committed. Both redact detected secret values in output.

gitleaks git --redact .
gitleaks dir --redact .

Review the reported file, commit, and rule. If a real credential has been exposed, revoke or rotate it and follow your project's incident process without copying the credential into a ticket.

Set up checks for your project

The template doesn't provide a project-specific Gitleaks configuration. If your repository needs custom rules or automated scans, use Gitleaks' configuration and CI documentation and decide separately where that check belongs. Gitleaks usage