diff --git a/lib/main.js b/lib/main.js index f06fa195..3f38b804 100644 --- a/lib/main.js +++ b/lib/main.js @@ -145,7 +145,7 @@ function main() { } } catch (error) { - core.setFailed(`${error} Could not get ID token for authentication. Please make sure to give permissions to id-token in the workflow.`); + core.error(`${error}. Could not get ID token for authentication. Please make sure to give write permissions to id-token in the workflow.`); } } // Attempting Az cli login @@ -215,7 +215,7 @@ function main() { } catch (error) { if (!isAzCLISuccess) { - 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."${error}" `); + 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 and make sure az is installed on the runner. For more information refer https://aka.ms/create-secrets-for-GitHub-workflows"`);