From 0fbd34510c88c4f6327b6283637aeb9aa3a91028 Mon Sep 17 00:00:00 2001 From: stanlyzoolo <51911715+stanlyzoolo@users.noreply.github.com> Date: Tue, 4 Aug 2026 16:05:47 +0300 Subject: [PATCH] test: rename the env fixture token to an obviously synthetic value MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit envRejectedOverlayModel took its GITHUB_TOKEN fixture from the shape rejectedOverlayModel used before b4e86c7 renamed it — mixed-case alphanumerics that read as high entropy. GitGuardian scans the PR's commits, so the new one raised a second finding, and a false positive there is a manual triage in the dashboard rather than something the repo can settle. Every other token fixture in the suite is an obviously fake lowercase word — ghp_notarealtoken, ghp_refusedtoken, ghp_deadbeef, ghp_expired. This one joins them. No test reads the value: TestAPIStatusNudgeIsEnvAware asserts on the nudge row, not on the masked token line. Co-Authored-By: Claude Opus 5 --- internal/model/render_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/model/render_test.go b/internal/model/render_test.go index 392f564..d56bdb2 100644 --- a/internal/model/render_test.go +++ b/internal/model/render_test.go @@ -2981,7 +2981,7 @@ func envRejectedOverlayModel(t *testing.T) Model { t.Helper() restoreDir := version.SetConfigDirForTesting(t.TempDir()) t.Cleanup(restoreDir) - t.Setenv("GITHUB_TOKEN", "ghp_E1n2V3t4O5f6G7h8") + t.Setenv("GITHUB_TOKEN", "ghp_envrefusedtoken") restoreFlag := version.SetTokenRejectedForTesting(true) t.Cleanup(restoreFlag)