Skip to content

[Identity] Use full path for CLI executables#38606

Merged
pvaneck merged 1 commit intoAzure:mainfrom
pvaneck:identity-cli-path
Feb 6, 2025
Merged

[Identity] Use full path for CLI executables#38606
pvaneck merged 1 commit intoAzure:mainfrom
pvaneck:identity-cli-path

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 a team and xiangyan99 as code owners November 20, 2024 21:03
@github-actions
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
21 checks passed
@pvaneck pvaneck deleted the identity-cli-path branch February 6, 2025 00:03
l0lawrence pushed a commit to l0lawrence/azure-sdk-for-python that referenced this pull request Feb 19, 2025
Also, adjustments were made to pass in subprocess arguments as a list.

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
cRui861 pushed a commit that referenced this pull request Feb 27, 2025
Also, adjustments were made to pass in subprocess arguments as a list.

Signed-off-by: Paul Van Eck <paulvaneck@microsoft.com>
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