Releases: Azure/login
Handling id-token error and Node version upgradation
In this release, a separate error will be thrown if id-token
permissions are not set in the workflow for OIDC login. Also upgraded the Node version to 16.
Handling warnings and added OIDC promotional note.
Error handling and minor doc changes.
Added az installation requirement in the error response
v1.4.3 Adding az installation requirement to login error response (release P…
Added federated token details in logs
Displaying OIDC token details - subject claim
and issuer
in the logs.
Added audience parameter and CLI,PS logs
An explicit input parameter called audience
is added to allow the option provided in the azure portal. Also CLI and powershell errors are being surfaced inside the action.
Added OIDC support
Login Action now supports two different ways of authentication with Azure. One using the Azure Service Principal with secrets. We now added the new OpenID Connect (OIDC) method of authentication using Azure Service Principal with a Federated Identity Credential.
Adding Azure PowerShell login changes
With the Azure login Action, you can automate your workflow to do an Azure login using Azure service principal and run Az CLI and Azure PowerShell scripts.
By default, only az cli login will be done. In addition to az cli, you can login using Az module to run Azure PowerShell scripts by setting enable-AzPSSession to true.
Sample workflow that uses Azure login action to run az cli
# File: .github/workflows/workflow.yml
on: [push]
name: AzurePowerShellSample
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Login via Az module
uses: azure/[email protected]
with:
creds: ${{secrets.AZURE_CREDENTIALS}}
enable-AzPSSession: true
- name: Run Az CLI script
run: |
az webapp list --query "[?state=='Running']"
- name: Run Azure PowerShell script
uses: azure/powershell@v1
with:
inlineScript: |
Get-AzVM -ResourceGroupName "ActionsDemo"
azPSVersion: '3.1.0'
License
GitHub Action for Azure Web App is licensed under the MIT License