mirror of
https://github.com/gesellix/Bose-SoundTouch.git
synced 2026-08-19 09:06:14 +00:00
The log.Printf at this line uses formatHeaders, which unconditionally redacts alwaysSensitiveHeaders (Authorization, Cookie, …) and applies sanitizeLog to strip newlines from other values. CodeQL cannot model the custom redaction inside formatHeaders and flags the call. The lgtm annotation suppresses the false positive. The struct comment explains the reviewed rationale in full. Closes CodeQL alert 294 (go/clear-text-logging). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>