Skip to content

Commit

Permalink
🪲 [Fix]: Set-Secret parameters (#6)
Browse files Browse the repository at this point in the history
## Description

- Fix Set-Secret parameters

## Type of change

<!-- Use the check-boxes [x] on the options that are relevant. -->

- [ ] 📖 [Docs]
- [x] 🪲 [Fix]
- [ ] 🩹 [Patch]
- [ ] ⚠️ [Security fix]
- [ ] 🚀 [Feature]
- [ ] 🌟 [Breaking change]

## Checklist

<!-- Use the check-boxes [x] on the options that are relevant. -->

- [x] I have performed a self-review of my own code
- [x] I have commented my code, particularly in hard-to-understand areas
  • Loading branch information
MariusStorhaug authored Mar 16, 2024
1 parent f8ddb0f commit 8c010b0
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 8c010b0

Please sign in to comment.