Skip to content

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

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

vishr merged 4 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.

Replaces the trivy secret scan in Gate; trivy still scans the container image.

vishr added 4 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.
CI runs only after a branch is public, so lefthook runs the same check on each commit message and before each push.
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.
Add the privacy rules to the existing .gitleaks.toml instead of replacing it, and drop the allowlist entry for the removed Atlas checksum file.
@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 65c9994 into main Nov 5, 2026
18 of 19 checks passed
@vishr
vishr deleted the ci/private-links branch November 5, 2026 16:02
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