Allow passwords to start with hyphen (#241)

Co-authored-by: Balaga Gayatri <balaga-gayatri@github.com>
This commit is contained in:
Johan Karlsson 2023-01-13 13:21:33 +01:00 committed by GitHub
commit 5d3578bb81
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);