test: add gitleaks smoke test for secret detection#677
Open
mvillmow wants to merge 3 commits into
Open
Conversation
mvillmow
commented
Jun 21, 2026
Add integration test to verify gitleaks job fails when a branch contains secrets matching configured rules. Confirms end-to-end detection behavior as a follow-up to #335. Closes #487 Implemented-By: claude-sonnet-4-6 Co-Authored-By: Claude Code <noreply@anthropic.com> Signed-off-by: Claude Haiku 4.5 <4211002+mvillmow@users.noreply.github.com> Signed-off-by: mvillmow <4211002+mvillmow@users.noreply.github.com>
Generated coverage report should not be in version control (churns on every test run, leaks absolute local paths). Addresses review feedback. Signed-off-by: Claude Haiku 4.5 <4211002+mvillmow@users.noreply.github.com> Signed-off-by: mvillmow <4211002+mvillmow@users.noreply.github.com>
Gitleaks evaluates allowlist.paths as unanchored Go regexp.MatchString searches, so use re.search instead of re.fullmatch to correctly guard against a root-covering pattern (e.g. a future 'txt' or '.*smoke.*' entry). Addresses review feedback. Signed-off-by: Claude Haiku 4.5 <4211002+mvillmow@users.noreply.github.com> Signed-off-by: mvillmow <4211002+mvillmow@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.
Summary
Add a smoke test that verifies gitleaks CI job fails on a branch containing a dummy secret matching a gitleaks rule, confirming end-to-end behavior of secret detection before merging.
Changes
Testing
Closes
Closes #487
Generated by Claude Code via ProjectHephaestus automation.