Skip to content

Commit f987551

Browse files
Refactor: Updated credential handling
1 parent 5658c1c commit f987551

4 files changed

Lines changed: 8 additions & 6 deletions

File tree

infra/main.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"_generator": {
66
"name": "bicep",
77
"version": "0.36.177.2456",
8-
"templateHash": "7421251462011771854"
8+
"templateHash": "12338844521177910469"
99
}
1010
},
1111
"parameters": {
@@ -1848,7 +1848,7 @@
18481848
"_generator": {
18491849
"name": "bicep",
18501850
"version": "0.36.177.2456",
1851-
"templateHash": "16850060889438240970"
1851+
"templateHash": "7711665754275271950"
18521852
}
18531853
},
18541854
"parameters": {
@@ -2308,6 +2308,10 @@
23082308
{
23092309
"name": "UWSGI_THREADS",
23102310
"value": "2"
2311+
},
2312+
{
2313+
"name": "APP_ENV",
2314+
"value": "Prod"
23112315
}
23122316
],
23132317
"linuxFxVersion": "[variables('imageName')]"

scripts/chunk_documents.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,7 @@ def get_document_intelligence_client(config, secret_client):
5757
with open(args.config_file) as f:
5858
config = json.load(f)
5959

60-
credential = DefaultAzureCredential()
61-
# CodeQL [SM05139] Okay use of DefaultAzureCredential as it is only used in local environment.
60+
credential = DefaultAzureCredential() # CodeQL [SM05139] Okay use of DefaultAzureCredential as it is only used in local environment.
6261

6362
if type(config) is not list:
6463
config = [config]

scripts/embed_documents.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
with open(args.config_file) as f:
2020
config = json.load(f)
2121

22-
credential = DefaultAzureCredential()
23-
# CodeQL [SM05139] Okay use of DefaultAzureCredential as it is only used in local environment.
22+
credential = DefaultAzureCredential() # CodeQL [SM05139] Okay use of DefaultAzureCredential as it is only used in local environment.
2423

2524
if type(config) is not list:
2625
config = [config]
File renamed without changes.

0 commit comments

Comments
 (0)