This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run Azure CLI Login with OpenID Connect | |
on: | |
push: | |
branches: | |
- vibhansa-fedTokenTest | |
permissions: | |
id-token: write # Require write permission to Fetch an OIDC token. | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Azure CLI Login | |
uses: azure/login@v2 | |
with: | |
auth-type: IDENTITY | |
client-id: ${{ secrets.AZURE_CLIENT_ID }} | |
tenant-id: ${{ secrets.AZURE_TENANT_ID }} | |
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | |
enable-AzPSSession: true | |
- name: Azure CLI script | |
uses: azure/cli@v2 | |
with: | |
azcliversion: latest | |
inlineScript: | | |
az account show | |
# You can write your Azure CLI inline scripts here. |