From 19dc58eb63ed8bf71c2f512c4e03d6c4e6e4cd87 Mon Sep 17 00:00:00 2001 From: gatsby003 Date: Thu, 24 Jul 2025 14:34:29 +0530 Subject: [PATCH 1/2] From cf6a7ca7c1b9034222372d0fa2503ce4cde2fe58 Mon Sep 17 00:00:00 2001 From: gatsby003 Date: Thu, 24 Jul 2025 14:18:52 +0530 Subject: [PATCH 2/2] fix --- tests/python/openai-hardcoded-secret-python-test.yml | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 tests/python/openai-hardcoded-secret-python-test.yml diff --git a/tests/python/openai-hardcoded-secret-python-test.yml b/tests/python/openai-hardcoded-secret-python-test.yml new file mode 100644 index 00000000..56a03a86 --- /dev/null +++ b/tests/python/openai-hardcoded-secret-python-test.yml @@ -0,0 +1,8 @@ +id: openai-hardcoded-secret-python +valid: + - | + openai.api_key=os.env["OPENAI_API_KEY"] +invalid: + - | + api_key="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" + f = "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"