mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix static secret in code (#8186)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user