From e94e13e215018ab60e1ca4dc07646cba21b431cd Mon Sep 17 00:00:00 2001 From: Kenji Saito <1867845+poad@users.noreply.github.com> Date: Sun, 10 Aug 2025 13:16:22 +0900 Subject: [PATCH] Potential fix for code scanning alert no. 2: Clear-text logging of sensitive information Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- rag/batch/src/embeddings-models.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rag/batch/src/embeddings-models.ts b/rag/batch/src/embeddings-models.ts index ee99b3bc..e96cb90b 100644 --- a/rag/batch/src/embeddings-models.ts +++ b/rag/batch/src/embeddings-models.ts @@ -9,7 +9,7 @@ interface EmbeddingsModel { } function listEmbeddings(): EmbeddingsModel[] { - console.log(JSON.stringify(process.env.AZURE_OPENAI_API_KEY ?? '', null, 2)); + // Do not log sensitive information such as API keys. return [ { type: 'titan', model: new BedrockEmbeddings({