Skip to content

Assemble token-shaped redactor test values at run time - #34

Merged
imanimanyara merged 1 commit into
mainfrom
chore/secret-hygiene
Oct 8, 2026
Merged

imanimanyara merged 1 commit into
mainfrom
chore/secret-hygiene

Conversation

@imanimanyara

Copy link
Copy Markdown
Member

Summary

internal/secret/redact_test.go carried ghp_, glpat- and AKIA literals that scanners match by prefix. They are now assembled at run time with strings.Repeat, in the same shapes, so the test still proves each pattern is masked.

No config change: no fixture or example-env paths, and the existing .gitleaks.toml is left as it is.

Verified locally: secret_scan.py check --ref HEAD exits 0. Gates: go build, go vet, go test -race, golangci-lint (0 issues).

The redactor test carried ghp_, glpat- and AKIA literals that secret
scanners match by prefix. Build the same shapes with strings.Repeat so
the test still proves each pattern is masked, with no literal in the
source.
Copilot AI balanced review requested due to automatic review settings October 8, 2026 11:23

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@imanimanyara
imanimanyara merged commit f6d55dd into main Oct 8, 2026
9 checks passed
@imanimanyara
imanimanyara deleted the chore/secret-hygiene branch November 1, 2026 17:25
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.

2 participants