From 0c48e2e0bf006a390de436ca2da406341169c087 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D9=8A?= Date: Mon, 25 May 2026 17:39:49 +0530 Subject: [PATCH] Potential fix for code scanning alert no. 85: 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..f6e0d21f 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 @@ -52,7 +52,7 @@ class AutoFillRefreshService: logger.info(f" - Website analysis keys: {list(website_analysis.keys()) if website_analysis else 'None'}") logger.info(f" - Research preferences keys: {list(research_preferences.keys()) if research_preferences else 'None'}") - logger.info(f" - API keys data keys: {list(api_keys_data.keys()) if api_keys_data else 'None'}") + logger.info(" - API keys data present: %s | entry_count=%s", bool(api_keys_data), len(api_keys_data) if isinstance(api_keys_data, dict) else 0) logger.info(f" - Onboarding session keys: {list(onboarding_session.keys()) if onboarding_session else 'None'}") # Log specific data points