Skip to content

Commit

Permalink
Fix secure string
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusStorhaug committed Mar 16, 2024
1 parent a438ec1 commit e9e7ebd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Store/public/Set-StoreConfig.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@
}
'Secret' {
if ($PSCmdlet.ShouldProcess("Set secret '$SecretName' to '$Value'")) {
Set-Secret -Name $SecretName -SecretValue $Value
if ($Value -is [SecureString]) {
Set-Secret -Name $SecretName -SecureStringSecret $Value
} else {
Set-Secret -Name $SecretName -Secret $Value
}
}
}
}
Expand Down

0 comments on commit e9e7ebd

Please sign in to comment.