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

[Identity] Use full path for CLI executables #38606

Merged
merged 1 commit into from
Feb 6, 2025

Conversation

pvaneck
Copy link
Member

@pvaneck pvaneck commented Nov 19, 2024

Since shutil.which is always run to verify the existence of the az and azd executables, and it gives the full path of the executable, let's just call the executable path directly for AzureCliCredential and AzureDeveloperCliCredential.

Also, adjustments were made to pass in subprocess arguments as a list which is the preferred (more secure) way of passing commands/arguments to subprocesses instead of going through the shell.

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@pvaneck pvaneck marked this pull request as ready for review November 20, 2024 21:03
@pvaneck pvaneck requested review from xiangyan99 and a team as code owners November 20, 2024 21:03
Copy link

Hi @pvaneck. Thank you for your interest in helping to improve the Azure SDK experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days.

@github-actions github-actions bot added the no-recent-activity There has been no recent activity on this issue. label Jan 24, 2025
Also, adjustments were made to pass in subprocess arguments as a list.

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
@github-actions github-actions bot removed the no-recent-activity There has been no recent activity on this issue. label Jan 31, 2025
@pvaneck pvaneck merged commit 1a9968d into Azure:main Feb 6, 2025
22 checks passed
@pvaneck pvaneck deleted the identity-cli-path branch February 6, 2025 00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

3 participants