zc-workstationDocumentation PDF GitHub

gitleaks

gitleaks, the secret scanner that runs before every commit.

.md

gitleaks looks for keys, tokens and passwords in what you are about to commit. On the workstation it runs as a global pre-commit hook in every repository, so a secret is stopped before it reaches history, which is far cheaper than rotating it later.

On the workstation

  • Installed by the gitleaks formula.

  • A global hook chain runs it on staged changes, then hands over to the repository’s own hook, so pre-commit and git-lfs keep working.

Keys and commands

Key or command Does

gitleaks git

Scan a repository’s whole history

Edit this page Last updated

Keyboard shortcuts

Ctrl/⌘ K or /
Search the docs
↑ ↓ Enter
Move through the search results
← →
Previous or next page
f
Filter the pages in the sidebar
g h
Home
t
Cycle the theme
?
This list
Esc
Close a menu or the search results