Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Symbols in az-cli generated clientSecret breaks login #42

Open
ishitachawla opened this issue Jun 2, 2021 · 0 comments
Open

Symbols in az-cli generated clientSecret breaks login #42

ishitachawla opened this issue Jun 2, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@ishitachawla
Copy link
Owner

Following this guide, most people probably just copy&paste the JSON output generated by the service principal creation via az-cli to their Github secrets.

However the generated clientSecret often contains symbols which must be escaped in order to work in the az login command performed in the Github Action.

For example:
az-cli generated a clientSecret which includes avc!bH9;5<d9L,M!.
This breaks the login process without a meaningful error mesasge. It works if it's escaped to avc!bH9;5<d9L,M! before being inserted here:

executeAzCliCommand(`login --service-principal -u "${servicePrincipalId}" -p "${servicePrincipalKey}" --tenant "${tenantI

@github-actions github-actions bot added the bug Something isn't working label Jun 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant