Skip to content

Commit

Permalink
Create az-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
robertomest authored Jul 30, 2024
1 parent ca4b204 commit 2cec445
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/az-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Run Azure Login with OIDC
on: [push]

permissions:
id-token: write
contents: read
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: 'Az CLI login'
uses: azure/login@v1
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

- name: 'Run az commands'
run: |
az account show
az group list

0 comments on commit 2cec445

Please sign in to comment.