Repository navigation
ci: scan only the checked-out history with gitleaks - #241
Merged
Merged
Conversation
2 tasks done
This was referenced Oct 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
gitleaksjob scannedgit log --all, andfetch-depth: 0fetches every remote branch, so each PR scanned every other branch withmain's.gitleaks.toml. A branch that adds an allowlisted fixture (currentlyfeat/207-pip-viewer, PR #225) failed every other PR. The job now passes--log-opts=HEAD. On a pull request HEAD is the merge commit, so the scan coversmainplus the PR's own commits with the PR's own config. On a push tomainit covers the full history ofmain. The allowlist policy is unchanged.One tradeoff: a branch with no open PR is no longer scanned incidentally by other PRs. It is scanned when it gets a PR, and again on
mainwhen it merges.Closes #236
origin/mainand this branch. Old command: 447 commits, 24 findings fromfeat/207-pip-viewer. New command: 211 commits, no leaks~/.cache/kickoff-236/sol-1/last-message.mdmainpushes still scan the full history ofmainorigin/mainalone: 210 non-merge commits scanned, no leaks. Withfetch-depth: 0, HEAD on a push tomainis the tip ofmain~/.cache/kickoff-236/sol-1/last-message.mdaws-access-tokenfinding and exits 1~/.cache/kickoff-236/sol-1/last-message.md.gitleaks.tomlchange is its first comment line, which now describes the new scan scopegitleakscheck must passThere is nothing to drive in a device pass. The change is CI configuration, and the scenarios above exercise it directly. Workflow YAML parses; actionlint is not installed here.