Skip to content

ci: scan for secrets, session links and local paths with gitleaks - #9

Merged
vishr merged 3 commits into
mainfrom
ci/private-links
Nov 5, 2026
Merged

vishr merged 3 commits into
mainfrom
ci/private-links

Conversation

@vishr

@vishr vishr commented Nov 5, 2026 •

Copy link
Copy Markdown
Member

This repository is public. .gitleaks.toml adds two rules to gitleaks's default secret rules: private AI session links and local workstation home paths. To catch something new, add a rule there.

A Leaks workflow scans the files, and on pull requests also the title, description and commit messages. Editing the description reruns it. Lefthook runs the same rules on staged changes and on each commit message; run lefthook install with gitleaks installed.

Squash merges use the pull request title and description, so branch commit messages no longer reach main.

vishr added 3 commits November 4, 2026 21:34
A privacy workflow checks tracked files, the pull request's commit messages and its title and description. Squash merges now take the pull request title and description.
Same script as Fanout: --message <file> checks a commit message, for use as a local commit-msg hook.
CI: one gitleaks rules file in place of the custom script. .gitleaks.toml extends gitleaks's default secret rules with private AI session links and local workstation paths. A Leaks workflow scans files, and on pull requests also the title, description and commit messages. Lefthook runs the same rules on staged changes and commit messages.
@vishr vishr changed the title ci: reject private session links and local paths ci: scan for secrets, session links and local paths with gitleaks Nov 5, 2026
@vishr
vishr merged commit 5462cbb into main Nov 5, 2026
3 of 4 checks passed
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.

1 participant