login: Azure login action does not function if the client secret starts with hyphen

If the Azure creds clientSecret starts with hyphen the Azure login action will fail with the following error:

Error: : argument --password/-p: expected one argument

It seems that the clientSecret is passed to az login using -p and not using -p= which is needed according to az login documentation if the clientSecret starts with a hyphen.

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 24 (1 by maintainers)

Most upvoted comments

IMHO: a bit odd to close this issue as it is a bug. Maybe update the documentation with this workaround?

In order to get unblocked with this scenario please use Azure/cli@v1 action and provide az login <arguments> command in the input. Make sure to follow this while using the command there. Since a workaround is provided here, closing this issue.

@chapitos - Good to hear that work is not blocked. We are working on it and will keep on updating the progress here.

Thanks again for all your co-operations.