From 4cb98167441e48046dd9d5c25cbdf7235afb91fa Mon Sep 17 00:00:00 2001 From: Jeff Rose Date: Fri, 16 Jan 2026 12:50:02 -0800 Subject: [PATCH 1/2] Apply suggested fix to test/integration/redaction_test.go from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- test/integration/redaction_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/redaction_test.go b/test/integration/redaction_test.go index f18df7b..bb64a37 100644 --- a/test/integration/redaction_test.go +++ b/test/integration/redaction_test.go @@ -88,10 +88,10 @@ controls: break } } - jsonStr := outputStr[jsonStart:] + jsonOutput := outputStr[jsonStart:] var result map[string]interface{} - err = json.Unmarshal([]byte(jsonStr), &result) + err = json.Unmarshal([]byte(jsonOutput), &result) require.NoError(t, err, "Failed to parse JSON output") // 6. Verify Redaction From a0d6ddc0fbcabe6c4f4a5ad6283a466673d381e2 Mon Sep 17 00:00:00 2001 From: Jeff Rose Date: Fri, 16 Jan 2026 12:50:02 -0800 Subject: [PATCH 2/2] Apply suggested fix to test/integration/redaction_test.go from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- test/integration/redaction_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/integration/redaction_test.go b/test/integration/redaction_test.go index bb64a37..b5dfa63 100644 --- a/test/integration/redaction_test.go +++ b/test/integration/redaction_test.go @@ -82,9 +82,9 @@ controls: // Parse JSON output (skip log lines) outputStr := string(outputBytes) jsonStart := 0 - for i, char := range outputStr { + for pos, char := range outputStr { if char == '{' { - jsonStart = i + jsonStart = pos break } }