File tree 1 file changed +17
-1
lines changed
1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change 5
5
- cron : " 0 0 * * *"
6
6
workflow_dispatch :
7
7
8
+ permissions :
9
+ id-token : write
10
+ contents : read
11
+
8
12
jobs :
9
13
Run_Test :
10
14
runs-on : ubuntu-latest
17
21
with :
18
22
python-version : ' 3.12'
19
23
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
+
20
36
- name : Set up virtual environment
21
37
run : |
22
38
python -m venv env
30
46
azdev test azure-devops --live --no-exitfirst --series
31
47
env :
32
48
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 }}
34
50
You can’t perform that action at this time.
0 commit comments