Skip to content

🪲[Bug]: Cannot pipe a secret to Remove-Secret #388

@MariusStorhaug

Description

@MariusStorhaug

Describe the bug

Get-GitHubSecret -Owner psmodule-test-org | ForEach-Object -ThrottleLimit 100 -Parallel { $_ | Remove-GitHubSecret }

Remove-GitHubSecret : Cannot bind argument to parameter 'Environment' because it is an empty string.
At line:1 char:7
+  $_ | Remove-GitHubSecret
+       ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : InvalidData: (GitHubSecret:PSObject) [Remove-GitHubSecret], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Remove-GitHubSecret

Version information

na

To reproduce

na

Code snippet

na

Relevant output

na

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions