From 10e689fdceb033076a24c151ae8127680c1312c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D9=8A?= Date: Mon, 25 May 2026 17:38:41 +0530 Subject: [PATCH] Potential fix for code scanning alert no. 88: Clear-text logging of sensitive information Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- .../content_strategy/autofill/ai_structured_autofill.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/api/content_planning/services/content_strategy/autofill/ai_structured_autofill.py b/backend/api/content_planning/services/content_strategy/autofill/ai_structured_autofill.py index 41f6d207..5aec2fab 100644 --- a/backend/api/content_planning/services/content_strategy/autofill/ai_structured_autofill.py +++ b/backend/api/content_planning/services/content_strategy/autofill/ai_structured_autofill.py @@ -499,7 +499,7 @@ Generate the complete JSON with all 30 fields personalized for {website_url}: # Log context summary for debugging logger.info("AIStructuredAutofillService: context summary | user=%s", user_id) logger.info(" - Website analysis exists: %s", bool(context_summary.get('user_profile', {}).get('website_url'))) - logger.info(" - Research config: %s", context_summary.get('research_config', {}).get('research_depth', 'None')) + logger.info(" - Research config present: %s", bool(context_summary.get('research_config', {}).get('research_depth'))) logger.info(" - API capabilities: %s", len(context_summary.get('api_capabilities', {}).get('providers', []))) logger.info(" - Content analysis: %s", bool(context_summary.get('content_analysis'))) logger.info(" - Audience insights: %s", bool(context_summary.get('audience_insights')))