From 67d11f407571123c34e8cba3c245664ecbf4e437 Mon Sep 17 00:00:00 2001 From: Karthick Date: Tue, 4 Nov 2025 18:20:40 +0000 Subject: [PATCH 1/3] SFI Alert 04 Nob --- pctasks/dev/pctasks/dev/cosmosdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pctasks/dev/pctasks/dev/cosmosdb.py b/pctasks/dev/pctasks/dev/cosmosdb.py index d9870e348..ee21ed9e7 100644 --- a/pctasks/dev/pctasks/dev/cosmosdb.py +++ b/pctasks/dev/pctasks/dev/cosmosdb.py @@ -34,7 +34,7 @@ def wait_for_emulator_start(url: str) -> None: try_count = 0 while True: try: - resp = requests.get(url, verify=False) # CodeQL [SM03157] justification + resp = requests.get(url, verify=False) # CodeQL [SM03157] Run against a local CosmosDB emulator during development and not in production. resp.raise_for_status() break except Exception as e: From 4dd1250f4b9ebf2be3e4489b88a274943e662b6b Mon Sep 17 00:00:00 2001 From: Karthick Date: Wed, 5 Nov 2025 12:16:30 +0000 Subject: [PATCH 2/3] fix lint --- pctasks/dev/pctasks/dev/cosmosdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pctasks/dev/pctasks/dev/cosmosdb.py b/pctasks/dev/pctasks/dev/cosmosdb.py index ee21ed9e7..083ccdf7d 100644 --- a/pctasks/dev/pctasks/dev/cosmosdb.py +++ b/pctasks/dev/pctasks/dev/cosmosdb.py @@ -34,7 +34,7 @@ def wait_for_emulator_start(url: str) -> None: try_count = 0 while True: try: - resp = requests.get(url, verify=False) # CodeQL [SM03157] Run against a local CosmosDB emulator during development and not in production. + resp = requests.get(url, verify=False) # CodeQL [SM03157] Run locally and not in production. resp.raise_for_status() break except Exception as e: From a50e5e88f9bafb6658fbe2b1f0eec29a6a92a76b Mon Sep 17 00:00:00 2001 From: Karthick Date: Wed, 5 Nov 2025 13:41:28 +0000 Subject: [PATCH 3/3] black skip --- pctasks/dev/pctasks/dev/cosmosdb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pctasks/dev/pctasks/dev/cosmosdb.py b/pctasks/dev/pctasks/dev/cosmosdb.py index 083ccdf7d..ef0a6dc6b 100644 --- a/pctasks/dev/pctasks/dev/cosmosdb.py +++ b/pctasks/dev/pctasks/dev/cosmosdb.py @@ -34,7 +34,7 @@ def wait_for_emulator_start(url: str) -> None: try_count = 0 while True: try: - resp = requests.get(url, verify=False) # CodeQL [SM03157] Run locally and not in production. + resp = requests.get(url, verify=False) # CodeQL [SM03157] Not used in production. # fmt: skip resp.raise_for_status() break except Exception as e: