login icon indicating copy to clipboard operation
login copied to clipboard

azure/login pre step takes up to 1 minute to execute

Open olafurnielsen opened this issue 1 year ago • 12 comments

Observed behavior: The pre step in azure/login takes up to 1 minute to execute. Very seldom does it take a few seconds to execute. In some of our builds this accounts for half the total build time.

Expected behavior: The step should consistently execute in a few seconds.

Information:

  • azure/login@v2
  • Authenticating against Azure public cloud
  • Using OIDC credentials
  • Running on GitHub hosted runners

Used as:

- name: Login to Azure
  uses: azure/login@v2
  with:
    tenant-id: ${{ secrets.AZURE_TENANT_ID }}
    client-id: ${{ secrets.AZURE_CLIENT_ID }}
    subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}

Resulting in: Screenshot 2024-06-05 at 09 55 30 Screenshot 2024-06-05 at 09 55 14

What can be done to speed this up?

olafurnielsen avatar Jun 05 '24 10:06 olafurnielsen