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

Lines changed: 9 additions & 0 deletions
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

Lines changed: 9 additions & 0 deletions
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

Lines changed: 9 additions & 0 deletions
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

Lines changed: 9 additions & 0 deletions
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

Lines changed: 9 additions & 0 deletions
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

Lines changed: 9 additions & 0 deletions
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

Lines changed: 9 additions & 0 deletions
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

Lines changed: 9 additions & 0 deletions
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

Lines changed: 9 additions & 0 deletions
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

Lines changed: 9 additions & 0 deletions
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"

0 commit comments

Comments
 (0)