From 5d3578bb8142d8e9b953cc003b28b7f8c7553145 Mon Sep 17 00:00:00 2001 From: Johan Karlsson <94831699+johanredeploy@users.noreply.github.com> Date: Fri, 13 Jan 2023 13:21:33 +0100 Subject: [PATCH] Allow passwords to start with hyphen (#241) Co-authored-by: Balaga Gayatri --- src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.ts b/src/main.ts index 9cd7141c..13ebea0c 100644 --- a/src/main.ts +++ b/src/main.ts @@ -175,7 +175,7 @@ async function main() { } else { console.log("Note: Azure/login action also supports OIDC login mechanism. Refer https://github.com/azure/login#configure-a-service-principal-with-a-federated-credential-to-use-oidc-based-authentication for more details.") - commonArgs = commonArgs.concat("-p", servicePrincipalKey); + commonArgs = commonArgs.concat(`--password=${servicePrincipalKey}`); } await executeAzCliCommand(`login`, true, loginOptions, commonArgs);