From 6c11b77f9494b2c014ff644bc88079d49289d116 Mon Sep 17 00:00:00 2001 From: Ilya Brin <464157+ilyabrin@users.noreply.github.com> Date: Mon, 28 Jul 2025 22:16:20 +0300 Subject: [PATCH] Potential fix for code scanning alert no. 1: Clear-text logging of sensitive information Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- logger.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/logger.go b/logger.go index 9fb12a4..75da680 100644 --- a/logger.go +++ b/logger.go @@ -178,11 +178,7 @@ func (l *DiskLogger) LogRequest(method, url string, headers map[string]string) { if l.config.Verbose { for key, value := range headers { sanitizedValue := l.SanitizeValue(key, value) - if sanitizedValue != value { - l.Debug(" Header: %s: %s", key, sanitizedValue) - } else { - l.Debug(" Header: %s: [sanitized]", key) - } + l.Debug(" Header: %s: %s", key, sanitizedValue) } } }