Skip to content

Fix PSAvoidUsingConvertToSecureStringWithPlainText in tests#115

Open
jshigetomi wants to merge 10 commits intoPowerShell:mainfrom
jshigetomi:sfiFixGH
Open

Fix PSAvoidUsingConvertToSecureStringWithPlainText in tests#115
jshigetomi wants to merge 10 commits intoPowerShell:mainfrom
jshigetomi:sfiFixGH

Conversation

@jshigetomi
Copy link
Copy Markdown

PR Summary

This pull request updates test code for the Microsoft.PowerShell.SecretStore module to improve how SecureString objects are created, and also updates the .NET SDK version in global.json. Additionally, a new metadata file is added for inventory and ownership tracking. The most important changes are summarized below:

Test improvements and code consistency:

  • Replaced all uses of ConvertTo-SecureString -AsPlainText -Force with [System.Net.NetworkCredential]::new('', $string).SecurePassword for creating SecureString objects in Microsoft.PowerShell.SecretStore.Tests.ps1, ensuring more robust and consistent test code. [1] [2] [3] [4]

Build and environment updates:

  • Updated the .NET SDK version in global.json from 8.0.300 to 8.0.318 to use a newer SDK for builds.

Metadata and ownership tracking:

  • Added a new es-metadata.yml file specifying schema version, provider information, production status, accountable owners, and default routing for the service.

PR Context

This PR is to fix an SFI bug on the ADO side. Changes merged here are all changes from ADO main branch that need to be on GitHub before mirroring can begin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants