From 84519181a86d80d2cbf85fe99c3dc3fb49bed682 Mon Sep 17 00:00:00 2001 From: Balaga Gayatri Date: Wed, 19 Jan 2022 22:50:55 +0530 Subject: [PATCH] Adding az installation requirement to login error response (#198) * Update main.ts * Update main.js --- lib/main.js | 4 ++-- src/main.ts | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/main.js b/lib/main.js index cfb181c5..4e896e56 100644 --- a/lib/main.js +++ b/lib/main.js @@ -213,10 +213,10 @@ function main() { } catch (error) { if (!isAzCLISuccess) { - core.setFailed("Az CLI Login failed. Please check the credentials. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows"); + core.setFailed("Az CLI Login failed. Please check the credentials and make sure az is istalled on the runner. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows"); } else { - core.setFailed(`Azure PowerShell Login failed. Please check the credentials. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows"`); + core.setFailed(`Azure PowerShell Login failed. Please check the credentials and make sure az is istalled on the runner. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows"`); } } finally { diff --git a/src/main.ts b/src/main.ts index 617e7739..616b3ddc 100644 --- a/src/main.ts +++ b/src/main.ts @@ -208,10 +208,10 @@ async function main() { } catch (error) { if (!isAzCLISuccess) { - core.setFailed("Az CLI Login failed. Please check the credentials. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows"); + core.setFailed("Az CLI Login failed. Please check the credentials and make sure az is installed on the runner. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows"); } else { - core.setFailed(`Azure PowerShell Login failed. Please check the credentials. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows"`); + core.setFailed(`Azure PowerShell Login failed. Please check the credentials and make sure az is installed on the runner. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows"`); } } finally { @@ -235,4 +235,4 @@ async function jwtParser(federatedToken: string) { let decodedPayload = JSON.parse(bufferObj.toString("utf8")); return [decodedPayload['iss'], decodedPayload['sub']]; } -main(); \ No newline at end of file +main();