From d0f0c25cf32134a1afd920895b23e655e7649638 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D9=8A?= Date: Mon, 25 May 2026 17:41:16 +0530 Subject: [PATCH] Potential fix for code scanning alert no. 87: Clear-text logging of sensitive information Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- .../services/content_strategy/autofill/ai_refresh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/api/content_planning/services/content_strategy/autofill/ai_refresh.py b/backend/api/content_planning/services/content_strategy/autofill/ai_refresh.py index ae8d68f2..618be8cf 100644 --- a/backend/api/content_planning/services/content_strategy/autofill/ai_refresh.py +++ b/backend/api/content_planning/services/content_strategy/autofill/ai_refresh.py @@ -64,7 +64,7 @@ class AutoFillRefreshService: logger.info(f" - Content types: {research_preferences.get('content_types', 'Not found')}") if api_keys_data: logger.info(f" - API providers: {api_keys_data.get('providers', [])}") - logger.info(f" - Total keys: {api_keys_data.get('total_keys', 0)}") + logger.info(" - API key data present: %s", bool(api_keys_data)) else: logger.warning(f"AutoFillRefreshService: no base context available | user=%s", user_id)