Skip to content

Commit 812d6ae

Browse files
Add Azure re-authentication steps to refresh OIDC token in deployment workflows
1 parent 5b17193 commit 812d6ae

2 files changed

Lines changed: 30 additions & 0 deletions

File tree

.github/workflows/job-deploy-linux.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,13 @@ jobs:
332332
sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18
333333
echo "✅ ODBC Driver 18 for SQL Server installed successfully."
334334
335+
- name: Re-authenticate with Azure (refresh OIDC token)
336+
uses: azure/login@v2
337+
with:
338+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
339+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
340+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
341+
335342
- name: Process Sample Data
336343
id: process_sample_data
337344
continue-on-error: true
@@ -341,6 +348,14 @@ jobs:
341348
bash ./infra/scripts/process_sample_data.sh
342349
echo "✅ Sample data processing completed successfully."
343350
351+
- name: Re-authenticate with Azure before retry (refresh OIDC token)
352+
if: steps.process_sample_data.outcome == 'failure'
353+
uses: azure/login@v2
354+
with:
355+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
356+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
357+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
358+
344359
- name: Retry Process Sample Data
345360
if: steps.process_sample_data.outcome == 'failure'
346361
shell: bash

.github/workflows/job-deploy-windows.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,13 @@ jobs:
357357
}
358358
}
359359
360+
- name: Re-authenticate with Azure (refresh OIDC token)
361+
uses: azure/login@v2
362+
with:
363+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
364+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
365+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
366+
360367
- name: Process Sample Data
361368
id: process_sample_data
362369
continue-on-error: true
@@ -368,6 +375,14 @@ jobs:
368375
bash ./infra/scripts/process_sample_data.sh
369376
echo "✅ Sample data processing completed successfully."
370377
378+
- name: Re-authenticate with Azure before retry (refresh OIDC token)
379+
if: steps.process_sample_data.outcome == 'failure'
380+
uses: azure/login@v2
381+
with:
382+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
383+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
384+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
385+
371386
- name: Retry Process Sample Data
372387
if: steps.process_sample_data.outcome == 'failure'
373388
shell: bash

0 commit comments

Comments
 (0)