Problem
The example file examples/CreateGitHubSecret.ps1 calls ConvertTo-SodiumSealedBox with a -Secret parameter:
$sealedPublicKeyBox = ConvertTo-SodiumSealedBox -Secret 'mysecret' -PublicKey $response.key
But the actual parameter name on ConvertTo-SodiumSealedBox is -Message. Running the example as written fails with:
ConvertTo-SodiumSealedBox: A parameter cannot be found that matches parameter name 'Secret'.
Suggested fix
Update the example to use -Message instead of -Secret:
$sealedPublicKeyBox = ConvertTo-SodiumSealedBox -Message 'mysecret' -PublicKey $response.key
Related code
examples/CreateGitHubSecret.ps1
src/functions/public/ConvertTo-SodiumSealedBox.ps1
Notes
This was noticed during test-coverage review. There is currently no test that validates the examples against the current parameter names.
Problem
The example file
examples/CreateGitHubSecret.ps1callsConvertTo-SodiumSealedBoxwith a-Secretparameter:But the actual parameter name on
ConvertTo-SodiumSealedBoxis-Message. Running the example as written fails with:Suggested fix
Update the example to use
-Messageinstead of-Secret:Related code
examples/CreateGitHubSecret.ps1src/functions/public/ConvertTo-SodiumSealedBox.ps1Notes
This was noticed during test-coverage review. There is currently no test that validates the examples against the current parameter names.