Repository navigation
perf(review): run Gitleaks once per review instead of per file - #4295
Merged
Merged
Conversation
A review of N files runs Gitleaks once over the directory of materialized targets instead of starting the process for each file. Findings map back to reviewed file paths relative to the tree, and scratch isolation files stay out of findings. Closes #2232
dan-petty
force-pushed
the
perf/2232-run-gitleaks-once-per-review-instead
branch
from
November 10, 2026 00:02
5b47ca2 to
3147a9e
Compare
dan-petty
marked this pull request as ready for review
November 10, 2026 00:10
dan-petty
pushed a commit
that referenced
this pull request
Nov 10, 2026
🤖 I have created a release *beep* *boop* --- ## [0.103.2](v0.103.1...v0.103.2) (2026-11-10) ### Bug Fixes * **ai:** route the Jev Decisions API through the gateway ([#4300](#4300)) ([4e5adb9](4e5adb9)) * **k8s:** move the mattermost database off the control plane ([#4304](#4304)) ([7029757](7029757)) ### Performance Improvements * **review:** run Gitleaks once per review instead of per file ([#4295](#4295)) ([2acb9f9](2acb9f9)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
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.
A code review starts one sandboxed Gitleaks run for each file that it reviews. For 37 files, this took 65 seconds in the sandbox. The static stage execution time grows linearly with the number of reviewed files (#2232). Gitleaks must run once for all reviewed files over a scratch directory.
Closes #2232
Change:
openspec/changes/archive/2026-11-09-2232-run-gitleaks-once-per-review-instead/