Merge pull request #11760 from kata-containers/sprt/oidc-fix

ci: aks: Refresh OIDC token in case access token expired
This commit is contained in:
Aurélien Bombo
2025-09-05 10:29:35 -05:00
committed by GitHub
4 changed files with 28 additions and 0 deletions

View File

@@ -147,6 +147,13 @@ jobs:
timeout-minutes: 60 timeout-minutes: 60
run: bash tests/integration/kubernetes/gha-run.sh run-tests run: bash tests/integration/kubernetes/gha-run.sh run-tests
- name: Refresh OIDC token in case access token expired
uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
with:
client-id: ${{ secrets.AZ_APPID }}
tenant-id: ${{ secrets.AZ_TENANT_ID }}
subscription-id: ${{ secrets.AZ_SUBSCRIPTION_ID }}
- name: Delete AKS cluster - name: Delete AKS cluster
if: always() if: always()
run: bash tests/integration/kubernetes/gha-run.sh delete-cluster run: bash tests/integration/kubernetes/gha-run.sh delete-cluster

View File

@@ -139,6 +139,13 @@ jobs:
timeout-minutes: 300 timeout-minutes: 300
run: bash tests/stability/gha-stability-run.sh run-tests run: bash tests/stability/gha-stability-run.sh run-tests
- name: Refresh OIDC token in case access token expired
uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
with:
client-id: ${{ secrets.AZ_APPID }}
tenant-id: ${{ secrets.AZ_TENANT_ID }}
subscription-id: ${{ secrets.AZ_SUBSCRIPTION_ID }}
- name: Delete AKS cluster - name: Delete AKS cluster
if: always() if: always()
run: bash tests/integration/kubernetes/gha-run.sh delete-cluster run: bash tests/integration/kubernetes/gha-run.sh delete-cluster

View File

@@ -323,6 +323,13 @@ jobs:
if: always() if: always()
run: bash tests/integration/kubernetes/gha-run.sh report-tests run: bash tests/integration/kubernetes/gha-run.sh report-tests
- name: Refresh OIDC token in case access token expired
uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
with:
client-id: ${{ secrets.AZ_APPID }}
tenant-id: ${{ secrets.AZ_TENANT_ID }}
subscription-id: ${{ secrets.AZ_SUBSCRIPTION_ID }}
- name: Delete AKS cluster - name: Delete AKS cluster
if: always() if: always()
run: bash tests/integration/kubernetes/gha-run.sh delete-cluster run: bash tests/integration/kubernetes/gha-run.sh delete-cluster

View File

@@ -102,6 +102,13 @@ jobs:
- name: Run tests - name: Run tests
run: bash tests/functional/kata-deploy/gha-run.sh run-tests run: bash tests/functional/kata-deploy/gha-run.sh run-tests
- name: Refresh OIDC token in case access token expired
uses: azure/login@a457da9ea143d694b1b9c7c869ebb04ebe844ef5 # v2.3.0
with:
client-id: ${{ secrets.AZ_APPID }}
tenant-id: ${{ secrets.AZ_TENANT_ID }}
subscription-id: ${{ secrets.AZ_SUBSCRIPTION_ID }}
- name: Delete AKS cluster - name: Delete AKS cluster
if: always() if: always()
run: bash tests/functional/kata-deploy/gha-run.sh delete-cluster run: bash tests/functional/kata-deploy/gha-run.sh delete-cluster