File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 55 - cron : " 0 0 * * *"
66 workflow_dispatch :
77
8+ permissions :
9+ id-token : write
10+ contents : read
11+
812jobs :
913 Run_Test :
1014 runs-on : ubuntu-latest
1721 with :
1822 python-version : ' 3.12'
1923
24+ - name : Azure Login using Managed Identity
25+ uses : azure/login@v2
26+ with :
27+ client-id : ${{ secrets.AZURE_CLIENT_ID }}
28+ tenant-id : ${{ secrets.AZURE_TENANT_ID }}
29+ allow-no-subscriptions : true
30+
31+ - name : Retrieve Azure Access Token
32+ id : ado-token
33+ run : |
34+ echo "token=$(az account get-access-token --resource 499b84ac-1321-427f-aa17-267ca6975798 | jq -r .accessToken)" >> $GITHUB_OUTPUT
35+
2036 - name : Set up virtual environment
2137 run : |
2238 python -m venv env
3046 azdev test azure-devops --live --no-exitfirst --series
3147 env :
3248 AZURE_DEVOPS_EXT_TEST_ORG : ${{ secrets.AZURE_DEVOPS_EXT_TEST_ORG }}
33- AZURE_DEVOPS_EXT_PAT : ${{ secrets.AZURE_DEVOPS_EXT_PAT }}
49+ AZURE_DEVOPS_EXT_PAT : ${{ steps.ado-token.outputs.token }}
3450
You can’t perform that action at this time.
0 commit comments