Skip to content

chore: pin gitleaks pre-commit hook to v8.30.1 - #33

Merged
nstranquist merged 1 commit into
mainfrom
cursor/gitleaks-pre-commit-db90
Nov 3, 2026
Merged

nstranquist merged 1 commit into
mainfrom
cursor/gitleaks-pre-commit-db90

Conversation

@nstranquist

Copy link
Copy Markdown
Owner

Change

Add a local pre-commit secret scan using the official gitleaks/gitleaks hook, pinned to v8.30.1 — the same version and default rules the CI gitleaks workflow already runs.

The hook id is gitleaks. Upstream runs gitleaks git --pre-commit --redact --staged on staged files only.

Proof

  • I ran make verify.
  • I ran make docs-site when documentation changed.
  • I added or updated direct tests.
  • I reviewed the diff for secrets, private catalog data, and local paths.

No product code changed. make verify and make docs-site were not run.

pre-commit 4.7.0 validate-config accepted .pre-commit-config.yaml. A local gitleaks 8.30.1 staged scan (git --pre-commit --redact --staged) of this file reported no leaks.

Boundaries

No API, schema, privacy, or CI change.

  • New file only: .pre-commit-config.yaml.
  • Repo https://github.com/gitleaks/gitleaks, rev v8.30.1, hook id gitleaks.
  • No custom rules, allowlist, or .gitleaks.toml. The hook uses the default rules built into 8.30.1, matching CI.
  • .github/workflows/gitleaks.yml and .github/workflows/ci.yml are untouched.

Do not merge from this change.

Open in Web Open in Cursor 

Add the official gitleaks hook so staged files are scanned locally with
the same 8.30.1 default rules CI uses. CI workflows are unchanged.

Co-authored-by: Nico S <nstranquist@gmail.com>
@nstranquist
nstranquist merged commit 46608c6 into main Nov 3, 2026
27 checks passed
@nstranquist
nstranquist deleted the cursor/gitleaks-pre-commit-db90 branch November 3, 2026 02:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants