Azure / Azure/login

Action does not handle intermittent network/GitHub connectivity issues

Open
#591 1 comment 5 reactions 0 assignees View on GitHub
performance-issue product enhancement
Dominant language
TypeScript
Stars
552
Forks
440
Avg merge
3d 5h
Merged PRs (30d)
18

Description

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:

```text
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.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.