Skip to content

Commit ce99aa8

Browse files
authored
fix(ci): Add workaround to circumvent azure-cli's lack of support for ID token refresh (#3328)
* fix: Eagerly request token scopes * chore: Regenerate workflows to pick up token caching change
1 parent a80fd77 commit ce99aa8

File tree

367 files changed

+3350
-2
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

367 files changed

+3350
-2
lines changed

.github/workflows/cli-assets-component-pipeline.yml

+9
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ jobs:
4545
bash setup.sh
4646
working-directory: cli
4747
continue-on-error: true
48+
- name: Eagerly cache access tokens for required scopes
49+
run: |
50+
# Workaround for azure-cli's lack of support for ID token refresh
51+
# Taken from: https://github.com/Azure/login/issues/372#issuecomment-2056289617
52+
53+
# Management
54+
az account get-access-token --scope https://management.azure.com/.default --output none
55+
# ML
56+
az account get-access-token --scope https://ml.azure.com/.default --output none
4857
- name: validate readme
4958
run: |
5059
python check-readme.py "${{ github.workspace }}/cli/assets/component"

.github/workflows/cli-assets-component-train.yml

+9
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ jobs:
4545
bash setup.sh
4646
working-directory: cli
4747
continue-on-error: true
48+
- name: Eagerly cache access tokens for required scopes
49+
run: |
50+
# Workaround for azure-cli's lack of support for ID token refresh
51+
# Taken from: https://github.com/Azure/login/issues/372#issuecomment-2056289617
52+
53+
# Management
54+
az account get-access-token --scope https://management.azure.com/.default --output none
55+
# ML
56+
az account get-access-token --scope https://ml.azure.com/.default --output none
4857
- name: validate readme
4958
run: |
5059
python check-readme.py "${{ github.workspace }}/cli/assets/component"

.github/workflows/cli-assets-data-cloud-file-https.yml

+9
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ jobs:
4545
bash setup.sh
4646
working-directory: cli
4747
continue-on-error: true
48+
- name: Eagerly cache access tokens for required scopes
49+
run: |
50+
# Workaround for azure-cli's lack of support for ID token refresh
51+
# Taken from: https://github.com/Azure/login/issues/372#issuecomment-2056289617
52+
53+
# Management
54+
az account get-access-token --scope https://management.azure.com/.default --output none
55+
# ML
56+
az account get-access-token --scope https://ml.azure.com/.default --output none
4857
- name: validate readme
4958
run: |
5059
python check-readme.py "${{ github.workspace }}/cli/assets/data"

.github/workflows/cli-assets-data-cloud-file-wasbs.yml

+9
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ jobs:
4545
bash setup.sh
4646
working-directory: cli
4747
continue-on-error: true
48+
- name: Eagerly cache access tokens for required scopes
49+
run: |
50+
# Workaround for azure-cli's lack of support for ID token refresh
51+
# Taken from: https://github.com/Azure/login/issues/372#issuecomment-2056289617
52+
53+
# Management
54+
az account get-access-token --scope https://management.azure.com/.default --output none
55+
# ML
56+
az account get-access-token --scope https://ml.azure.com/.default --output none
4857
- name: validate readme
4958
run: |
5059
python check-readme.py "${{ github.workspace }}/cli/assets/data"

.github/workflows/cli-assets-data-cloud-file.yml

+9
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ jobs:
4545
bash setup.sh
4646
working-directory: cli
4747
continue-on-error: true
48+
- name: Eagerly cache access tokens for required scopes
49+
run: |
50+
# Workaround for azure-cli's lack of support for ID token refresh
51+
# Taken from: https://github.com/Azure/login/issues/372#issuecomment-2056289617
52+
53+
# Management
54+
az account get-access-token --scope https://management.azure.com/.default --output none
55+
# ML
56+
az account get-access-token --scope https://ml.azure.com/.default --output none
4857
- name: validate readme
4958
run: |
5059
python check-readme.py "${{ github.workspace }}/cli/assets/data"

.github/workflows/cli-assets-data-cloud-folder-https.yml

+9
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ jobs:
4545
bash setup.sh
4646
working-directory: cli
4747
continue-on-error: true
48+
- name: Eagerly cache access tokens for required scopes
49+
run: |
50+
# Workaround for azure-cli's lack of support for ID token refresh
51+
# Taken from: https://github.com/Azure/login/issues/372#issuecomment-2056289617
52+
53+
# Management
54+
az account get-access-token --scope https://management.azure.com/.default --output none
55+
# ML
56+
az account get-access-token --scope https://ml.azure.com/.default --output none
4857
- name: validate readme
4958
run: |
5059
python check-readme.py "${{ github.workspace }}/cli/assets/data"

.github/workflows/cli-assets-data-cloud-folder.yml

+9
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ jobs:
4545
bash setup.sh
4646
working-directory: cli
4747
continue-on-error: true
48+
- name: Eagerly cache access tokens for required scopes
49+
run: |
50+
# Workaround for azure-cli's lack of support for ID token refresh
51+
# Taken from: https://github.com/Azure/login/issues/372#issuecomment-2056289617
52+
53+
# Management
54+
az account get-access-token --scope https://management.azure.com/.default --output none
55+
# ML
56+
az account get-access-token --scope https://ml.azure.com/.default --output none
4857
- name: validate readme
4958
run: |
5059
python check-readme.py "${{ github.workspace }}/cli/assets/data"

.github/workflows/cli-assets-data-cloud-mltable.yml

+9
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ jobs:
4545
bash setup.sh
4646
working-directory: cli
4747
continue-on-error: true
48+
- name: Eagerly cache access tokens for required scopes
49+
run: |
50+
# Workaround for azure-cli's lack of support for ID token refresh
51+
# Taken from: https://github.com/Azure/login/issues/372#issuecomment-2056289617
52+
53+
# Management
54+
az account get-access-token --scope https://management.azure.com/.default --output none
55+
# ML
56+
az account get-access-token --scope https://ml.azure.com/.default --output none
4857
- name: validate readme
4958
run: |
5059
python check-readme.py "${{ github.workspace }}/cli/assets/data"

.github/workflows/cli-assets-data-iris-csv-example.yml

+9
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ jobs:
4545
bash setup.sh
4646
working-directory: cli
4747
continue-on-error: true
48+
- name: Eagerly cache access tokens for required scopes
49+
run: |
50+
# Workaround for azure-cli's lack of support for ID token refresh
51+
# Taken from: https://github.com/Azure/login/issues/372#issuecomment-2056289617
52+
53+
# Management
54+
az account get-access-token --scope https://management.azure.com/.default --output none
55+
# ML
56+
az account get-access-token --scope https://ml.azure.com/.default --output none
4857
- name: validate readme
4958
run: |
5059
python check-readme.py "${{ github.workspace }}/cli/assets/data"

.github/workflows/cli-assets-data-local-file.yml

+9
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ jobs:
4545
bash setup.sh
4646
working-directory: cli
4747
continue-on-error: true
48+
- name: Eagerly cache access tokens for required scopes
49+
run: |
50+
# Workaround for azure-cli's lack of support for ID token refresh
51+
# Taken from: https://github.com/Azure/login/issues/372#issuecomment-2056289617
52+
53+
# Management
54+
az account get-access-token --scope https://management.azure.com/.default --output none
55+
# ML
56+
az account get-access-token --scope https://ml.azure.com/.default --output none
4857
- name: validate readme
4958
run: |
5059
python check-readme.py "${{ github.workspace }}/cli/assets/data"

.github/workflows/cli-assets-data-local-folder-sampledata.yml

+9
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ jobs:
4545
bash setup.sh
4646
working-directory: cli
4747
continue-on-error: true
48+
- name: Eagerly cache access tokens for required scopes
49+
run: |
50+
# Workaround for azure-cli's lack of support for ID token refresh
51+
# Taken from: https://github.com/Azure/login/issues/372#issuecomment-2056289617
52+
53+
# Management
54+
az account get-access-token --scope https://management.azure.com/.default --output none
55+
# ML
56+
az account get-access-token --scope https://ml.azure.com/.default --output none
4857
- name: validate readme
4958
run: |
5059
python check-readme.py "${{ github.workspace }}/cli/assets/data"

.github/workflows/cli-assets-data-local-folder.yml

+9
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ jobs:
4545
bash setup.sh
4646
working-directory: cli
4747
continue-on-error: true
48+
- name: Eagerly cache access tokens for required scopes
49+
run: |
50+
# Workaround for azure-cli's lack of support for ID token refresh
51+
# Taken from: https://github.com/Azure/login/issues/372#issuecomment-2056289617
52+
53+
# Management
54+
az account get-access-token --scope https://management.azure.com/.default --output none
55+
# ML
56+
az account get-access-token --scope https://ml.azure.com/.default --output none
4857
- name: validate readme
4958
run: |
5059
python check-readme.py "${{ github.workspace }}/cli/assets/data"

.github/workflows/cli-assets-data-local-mltable.yml

+9
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ jobs:
4545
bash setup.sh
4646
working-directory: cli
4747
continue-on-error: true
48+
- name: Eagerly cache access tokens for required scopes
49+
run: |
50+
# Workaround for azure-cli's lack of support for ID token refresh
51+
# Taken from: https://github.com/Azure/login/issues/372#issuecomment-2056289617
52+
53+
# Management
54+
az account get-access-token --scope https://management.azure.com/.default --output none
55+
# ML
56+
az account get-access-token --scope https://ml.azure.com/.default --output none
4857
- name: validate readme
4958
run: |
5059
python check-readme.py "${{ github.workspace }}/cli/assets/data"

.github/workflows/cli-assets-data-public-file-https.yml

+9
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ jobs:
4545
bash setup.sh
4646
working-directory: cli
4747
continue-on-error: true
48+
- name: Eagerly cache access tokens for required scopes
49+
run: |
50+
# Workaround for azure-cli's lack of support for ID token refresh
51+
# Taken from: https://github.com/Azure/login/issues/372#issuecomment-2056289617
52+
53+
# Management
54+
az account get-access-token --scope https://management.azure.com/.default --output none
55+
# ML
56+
az account get-access-token --scope https://ml.azure.com/.default --output none
4857
- name: validate readme
4958
run: |
5059
python check-readme.py "${{ github.workspace }}/cli/assets/data"

.github/workflows/cli-assets-environment-docker-context.yml

+9
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ jobs:
4545
bash setup.sh
4646
working-directory: cli
4747
continue-on-error: true
48+
- name: Eagerly cache access tokens for required scopes
49+
run: |
50+
# Workaround for azure-cli's lack of support for ID token refresh
51+
# Taken from: https://github.com/Azure/login/issues/372#issuecomment-2056289617
52+
53+
# Management
54+
az account get-access-token --scope https://management.azure.com/.default --output none
55+
# ML
56+
az account get-access-token --scope https://ml.azure.com/.default --output none
4857
- name: validate readme
4958
run: |
5059
python check-readme.py "${{ github.workspace }}/cli/assets/environment"

.github/workflows/cli-assets-environment-docker-image.yml

+9
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ jobs:
4545
bash setup.sh
4646
working-directory: cli
4747
continue-on-error: true
48+
- name: Eagerly cache access tokens for required scopes
49+
run: |
50+
# Workaround for azure-cli's lack of support for ID token refresh
51+
# Taken from: https://github.com/Azure/login/issues/372#issuecomment-2056289617
52+
53+
# Management
54+
az account get-access-token --scope https://management.azure.com/.default --output none
55+
# ML
56+
az account get-access-token --scope https://ml.azure.com/.default --output none
4857
- name: validate readme
4958
run: |
5059
python check-readme.py "${{ github.workspace }}/cli/assets/environment"

.github/workflows/cli-assets-model-local-file.yml

+9
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ jobs:
4545
bash setup.sh
4646
working-directory: cli
4747
continue-on-error: true
48+
- name: Eagerly cache access tokens for required scopes
49+
run: |
50+
# Workaround for azure-cli's lack of support for ID token refresh
51+
# Taken from: https://github.com/Azure/login/issues/372#issuecomment-2056289617
52+
53+
# Management
54+
az account get-access-token --scope https://management.azure.com/.default --output none
55+
# ML
56+
az account get-access-token --scope https://ml.azure.com/.default --output none
4857
- name: validate readme
4958
run: |
5059
python check-readme.py "${{ github.workspace }}/cli/assets/model"

.github/workflows/cli-assets-model-local-mlflow.yml

+9
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ jobs:
4545
bash setup.sh
4646
working-directory: cli
4747
continue-on-error: true
48+
- name: Eagerly cache access tokens for required scopes
49+
run: |
50+
# Workaround for azure-cli's lack of support for ID token refresh
51+
# Taken from: https://github.com/Azure/login/issues/372#issuecomment-2056289617
52+
53+
# Management
54+
az account get-access-token --scope https://management.azure.com/.default --output none
55+
# ML
56+
az account get-access-token --scope https://ml.azure.com/.default --output none
4857
- name: validate readme
4958
run: |
5059
python check-readme.py "${{ github.workspace }}/cli/assets/model"

.github/workflows/cli-endpoints-batch-deploy-models-custom-outputs-parquet-endpoint.yml

+9
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ jobs:
4646
bash setup.sh
4747
working-directory: cli
4848
continue-on-error: true
49+
- name: Eagerly cache access tokens for required scopes
50+
run: |
51+
# Workaround for azure-cli's lack of support for ID token refresh
52+
# Taken from: https://github.com/Azure/login/issues/372#issuecomment-2056289617
53+
54+
# Management
55+
az account get-access-token --scope https://management.azure.com/.default --output none
56+
# ML
57+
az account get-access-token --scope https://ml.azure.com/.default --output none
4958
- name: validate readme
5059
run: |
5160
python check-readme.py "${{ github.workspace }}/cli/endpoints/batch/deploy-models/custom-outputs-parquet"

.github/workflows/cli-endpoints-batch-deploy-models-heart-classifier-mlflow-endpoint.yml

+9
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ jobs:
4646
bash setup.sh
4747
working-directory: cli
4848
continue-on-error: true
49+
- name: Eagerly cache access tokens for required scopes
50+
run: |
51+
# Workaround for azure-cli's lack of support for ID token refresh
52+
# Taken from: https://github.com/Azure/login/issues/372#issuecomment-2056289617
53+
54+
# Management
55+
az account get-access-token --scope https://management.azure.com/.default --output none
56+
# ML
57+
az account get-access-token --scope https://ml.azure.com/.default --output none
4958
- name: validate readme
5059
run: |
5160
python check-readme.py "${{ github.workspace }}/cli/endpoints/batch/deploy-models/heart-classifier-mlflow"

.github/workflows/cli-endpoints-batch-deploy-models-huggingface-text-summarization-endpoint.yml

+9
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ jobs:
4646
bash setup.sh
4747
working-directory: cli
4848
continue-on-error: true
49+
- name: Eagerly cache access tokens for required scopes
50+
run: |
51+
# Workaround for azure-cli's lack of support for ID token refresh
52+
# Taken from: https://github.com/Azure/login/issues/372#issuecomment-2056289617
53+
54+
# Management
55+
az account get-access-token --scope https://management.azure.com/.default --output none
56+
# ML
57+
az account get-access-token --scope https://ml.azure.com/.default --output none
4958
- name: validate readme
5059
run: |
5160
python check-readme.py "${{ github.workspace }}/cli/endpoints/batch/deploy-models/huggingface-text-summarization"

.github/workflows/cli-endpoints-batch-deploy-models-imagenet-classifier-endpoint.yml

+9
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ jobs:
4646
bash setup.sh
4747
working-directory: cli
4848
continue-on-error: true
49+
- name: Eagerly cache access tokens for required scopes
50+
run: |
51+
# Workaround for azure-cli's lack of support for ID token refresh
52+
# Taken from: https://github.com/Azure/login/issues/372#issuecomment-2056289617
53+
54+
# Management
55+
az account get-access-token --scope https://management.azure.com/.default --output none
56+
# ML
57+
az account get-access-token --scope https://ml.azure.com/.default --output none
4958
- name: validate readme
5059
run: |
5160
python check-readme.py "${{ github.workspace }}/cli/endpoints/batch/deploy-models/imagenet-classifier"

.github/workflows/cli-endpoints-batch-deploy-models-mnist-classifier-endpoint.yml

+9
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ jobs:
4646
bash setup.sh
4747
working-directory: cli
4848
continue-on-error: true
49+
- name: Eagerly cache access tokens for required scopes
50+
run: |
51+
# Workaround for azure-cli's lack of support for ID token refresh
52+
# Taken from: https://github.com/Azure/login/issues/372#issuecomment-2056289617
53+
54+
# Management
55+
az account get-access-token --scope https://management.azure.com/.default --output none
56+
# ML
57+
az account get-access-token --scope https://ml.azure.com/.default --output none
4958
- name: validate readme
5059
run: |
5160
python check-readme.py "${{ github.workspace }}/cli/endpoints/batch/deploy-models/mnist-classifier"

.github/workflows/cli-endpoints-batch-deploy-pipelines-batch-scoring-with-preprocessing-endpoint.yml

+9
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ jobs:
4646
bash setup.sh
4747
working-directory: cli
4848
continue-on-error: true
49+
- name: Eagerly cache access tokens for required scopes
50+
run: |
51+
# Workaround for azure-cli's lack of support for ID token refresh
52+
# Taken from: https://github.com/Azure/login/issues/372#issuecomment-2056289617
53+
54+
# Management
55+
az account get-access-token --scope https://management.azure.com/.default --output none
56+
# ML
57+
az account get-access-token --scope https://ml.azure.com/.default --output none
4958
- name: validate readme
5059
run: |
5160
python check-readme.py "${{ github.workspace }}/cli/endpoints/batch/deploy-pipelines/batch-scoring-with-preprocessing"

.github/workflows/cli-endpoints-batch-deploy-pipelines-hello-batch-endpoint.yml

+9
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,15 @@ jobs:
4646
bash setup.sh
4747
working-directory: cli
4848
continue-on-error: true
49+
- name: Eagerly cache access tokens for required scopes
50+
run: |
51+
# Workaround for azure-cli's lack of support for ID token refresh
52+
# Taken from: https://github.com/Azure/login/issues/372#issuecomment-2056289617
53+
54+
# Management
55+
az account get-access-token --scope https://management.azure.com/.default --output none
56+
# ML
57+
az account get-access-token --scope https://ml.azure.com/.default --output none
4958
- name: validate readme
5059
run: |
5160
python check-readme.py "${{ github.workspace }}/cli/endpoints/batch/deploy-pipelines/hello-batch"

0 commit comments

Comments
 (0)