Fix static secret in code (#8186)

This commit is contained in:
Travis Plunk
2018-11-05 18:29:04 -08:00
committed by GitHub
parent a1585502bb
commit 5e47c73e27
@@ -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