Skip to content

Commit acad40a

Browse files
Potential fix for code scanning alert no. 2: Clear-text logging of sensitive information (#107)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent cfde4cd commit acad40a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rag/batch/src/embeddings-models.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ interface EmbeddingsModel {
99
}
1010

1111
function listEmbeddings(): EmbeddingsModel[] {
12-
console.log(JSON.stringify(process.env.AZURE_OPENAI_API_KEY ?? '', null, 2));
12+
// Do not log sensitive information such as API keys.
1313
return [
1414
{
1515
type: 'titan', model: new BedrockEmbeddings({

0 commit comments

Comments
 (0)