Repository navigation
fix: skip gitleaks test dirs, not substring names - #102
Merged
chrisknvidia merged 4 commits intoAug 30, 2026
Merged
Conversation
The default allowlist used (.*)?test(.*)?, which also skipped latest, attestation, and contest. Match test/example/fixture/mock as directory path components instead. Fixes NVIDIA#92 Signed-off-by: mimran-khan <[email protected]>
mimran-khan
requested review from
chrisknvidia,
mosheabr,
rmalani-nv and
rng1995
as code owners
August 26, 2026 20:10
rng1995
approved these changes
Aug 28, 2026
rng1995
left a comment
Collaborator
There was a problem hiding this comment.
Reviewed the exact current head against #92. The allowlist now targets singular/plural test/example/fixture/mock directory components without exempting production names such as latest, attestation, or contest. Focused tests pass (13), with Ruff and diff checks clean. No actionable findings; approved. The red Gitleaks job is unrelated branch history.
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
This was referenced Aug 30, 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.
Summary
The default Gitleaks allowlist treated
testas a substring, soscripts/latest.pyandattestation.pywere never scanned. Same shape forexample,fixture, andmock.The skip is now a directory path component (
tests/,test/,examples/, ...). Production files whose names happen to contain those letters still go through secrets. Fixes #92.Verification
make lintmake testmake buildRelease Impact
CHANGELOG.md