From 9b66088e92cbe84e533003661d7737578371b82b Mon Sep 17 00:00:00 2001 From: Shruthi Kumar Date: Thu, 11 Apr 2024 16:48:52 -0500 Subject: [PATCH] Add temporary login for expired auth (#7491) # Description Long-running tests have started to fail due to the az login authentication expiring. Based on the error message (see linked issue), the authentication is only valid for 5 minutes. This seems to be a known issue [based on discussion here](https://github.com/Azure/azure-cli/issues/28708#issuecomment-2049400226) but there's no fix so adding this temporary workaround until there's a way to extend the time the auth is valid. ## Type of change - This pull request fixes a bug in Radius and has an approved issue (issue link required). - This pull request adds or changes features of Radius and has an approved issue (issue link required). - This pull request is a minor refactor, code cleanup, test improvement, or other maintenance task and doesn't change the functionality of Radius #7490 Fixes: #issue_number Signed-off-by: sk593 --- .github/workflows/long-running-azure.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/long-running-azure.yaml b/.github/workflows/long-running-azure.yaml index 24088da4d8..9b132f8e60 100644 --- a/.github/workflows/long-running-azure.yaml +++ b/.github/workflows/long-running-azure.yaml @@ -485,6 +485,12 @@ jobs: if: failure() run: | echo ":x: functional test failed." >> $GITHUB_STEP_SUMMARY + - name: Login to Azure + uses: azure/login@v2 + with: + client-id: ${{ secrets.AZURE_SP_TESTS_APPID }} + tenant-id: ${{ secrets.AZURE_SP_TESTS_TENANTID }} + subscription-id: ${{ secrets.AZURE_SUBSCRIPTIONID_TESTS }} - name: Delete azure resource group - ${{ env.AZURE_TEST_RESOURCE_GROUP }} if: always() run: |