Skip to content

Commit 2c1c462

Browse files
authored
Create testAction.yml
1 parent 482825d commit 2c1c462

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/testAction.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Run Azure Login with OIDC
2+
on: workflow_dispatch
3+
permissions:
4+
id-token: write
5+
contents: read
6+
jobs:
7+
build-and-deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Azure login
11+
uses: azure/login@v2
12+
with:
13+
client-id: ${{ secrets.AZURE_CLIENT_ID }}
14+
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
15+
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
16+
- name: Azure CLI script
17+
uses: azure/cli@v2
18+
with:
19+
azcliversion: latest
20+
inlineScript: |
21+
az account show

0 commit comments

Comments
 (0)