The azure/login action intermittently fails due to transient network or GitHub OIDC token generation issues. Because these errors are temporary, adding automatic retry logic to the action would prevent workflows from failing unnecessarily.
Actual Behavior
The action occasionally fails during the token fetch phase with the following logs:
Run azure/login@532459ea530d8321f2fb9bb10d1e0bcf23869a43
Running Azure CLI Login.
/usr/bin/az cloud set -n azurecloud
Done setting cloud: "azurecloud"
Error: Failed to fetch federated token from GitHub. Please make sure to give write permissions to id-token in the workflow.
Error: Login failed with Error: Error message: Cannot read properties of undefined (reading 'message'). Double check if the 'auth-type' is correct. Refer to https://github.com/Azure/login#readme for more information.
The id-token: write permissions are correctly configured, and the workflow usually succeeds on a manual re-run, indicating an intermittent network or API error.
The
azure/loginaction intermittently fails due to transient network or GitHub OIDC token generation issues. Because these errors are temporary, adding automatic retry logic to the action would prevent workflows from failing unnecessarily.Actual Behavior
The action occasionally fails during the token fetch phase with the following logs:
The
id-token: writepermissions are correctly configured, and the workflow usually succeeds on a manual re-run, indicating an intermittent network or API error.