mirror of
https://github.com/kellymichels/zscripts-token-savers
synced 2026-10-07 07:18:18 +00:00
This repo is public, and the denylist that keeps private identifiers out of it spelled two of them in full: the retired EHS product name, and its old domain. The file protecting the name was the file publishing it. Deleting those two rules was not an option. The private tree still carries that name in ~20 places - sp_fix_kelly_email_prod.ps1 alone has the old domain and a real prod stack path - so both rules are live, not stale. Dropping them would trade a visible string for an actual leak path. So split the literal with a one-character class instead: Smart[P]lant and smart[p]lantehs. A class of one matches exactly that character, so the regex is unchanged - verified by matching both spellings and the old domain before and after, with negative controls - while the contiguous string no longer appears in a public file. Commented in place, because the obvious "tidy-up" is to un-split it. Pester: tests/Sanitization.Tests.ps1 14 passed, 0 failed. Co-authored-by: Claude Opus 5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| fixtures | ||
| ArgumentParsing.Tests.ps1 | ||
| Checksums.Tests.ps1 | ||
| DeployTag.Tests.ps1 | ||
| DockerImageStep.Tests.ps1 | ||
| Invoke-Coverage.ps1 | ||
| NewProjectArchive.Tests.ps1 | ||
| PlainTextTwins.Tests.ps1 | ||
| sanitization-patterns.psd1 | ||
| Sanitization.Tests.ps1 | ||
| StartGitPull.Tests.ps1 | ||
| VerifyPlan.Tests.ps1 | ||
| ZHelpers.Tests.ps1 | ||