Skip to content

Commit

Permalink
ci,fix: Eagerly cache access tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
kdestin committed Oct 29, 2024
1 parent b34bafb commit e9752cf
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/automated-cleanup-resources.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ jobs:
bash setup.sh
working-directory: cli
continue-on-error: true
- name: Eagerly cache access tokens for required scopes
run: |
# Workaround for azure-cli's lack of support for ID token refresh
# Taken from: https://github.com/Azure/login/issues/372#issuecomment-2056289617
# Management
az account get-access-token --scope https://management.azure.com/.default --output none
# ML
az account get-access-token --scope https://ml.azure.com/.default --output none
- name: Perform Cleanup
run: |
source "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh";
Expand Down

0 comments on commit e9752cf

Please sign in to comment.