Commit 7fc6341
fix(analyzer): suppress unavoidable ConvertTo-SecureString error in Azure CLI auth
PSScriptAnalyzer flagged PSAvoidUsingConvertToSecureStringWithPlainText as a
blocking Error at Connect-RangerAzureContext (40-Execution.ps1:883), failing CI.
The Azure CLI (az account get-access-token) returns the ARM access token as a
plaintext string, and Connect-AzAccount -AccessToken requires a SecureString on
Az.Accounts 5+, so an in-memory ConvertTo-SecureString is the only supported
conversion — no secret is persisted. Added a scoped SuppressMessageAttribute
with justification rather than altering behavior.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent dc4c40a commit 7fc6341
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
746 | 746 | | |
747 | 747 | | |
748 | 748 | | |
| 749 | + | |
| 750 | + | |
749 | 751 | | |
750 | 752 | | |
751 | 753 | | |
| |||
0 commit comments