From a98315f3bf1c4adc0e330b2a4220299141c6825e Mon Sep 17 00:00:00 2001 From: Travis Plunk Date: Mon, 5 Nov 2018 16:25:45 -0800 Subject: [PATCH] fix static secret in code --- .../Modules/Microsoft.PowerShell.Utility/clixml.tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/clixml.tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/clixml.tests.ps1 index e8629dd0f61..570aa1181a1 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/clixml.tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/clixml.tests.ps1 @@ -194,7 +194,7 @@ Describe "CliXml test" -Tags "CI" { It "should import PSCredential" -Skip:(!$IsWindows) { $UserName = "Foo" - $pass = ConvertTo-SecureString "bar" -AsPlainText -Force + $pass = ConvertTo-SecureString (New-RandomHexString) -AsPlainText -Force $cred = [PSCredential]::new($UserName, $pass) $path = "$testdrive/cred.xml" $cred | Export-Clixml -Path $path