Skip to content

Commit 4552e66

Browse files
(GHA) Fix authorized_accounts parameter handler (MicrosoftDocs#12254)
Prior to this change, the `verification/authorization/v1` workflow definition of the `authorized_accounts` parameter handler defined an empty scriptblock for the `IfNullOrEmpty` key to indicate that null/empty values are acceptable for this optional parameter. Instead, it shouldn't define the `IfNullOrEmpty` key-value pair at all. The `Get-ActionScriptParameter` helper function ignores null or empty values when the `IfNullOrEmpty` key isn't defined. This change removes the `IfNullOrEmpty` key-value pair from the `authorized_accounts` parameter handler definition.
1 parent 6065db0 commit 4552e66

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

.github/actions/verification/authorization/v1/Parameters.psd1

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,6 @@
3232
@{
3333
Name = 'authorized_accounts'
3434
Type = 'String[]'
35-
IfNullOrEmpty = {
36-
param($ErrorTarget)
37-
38-
# This parameter is optional, so don't error.
39-
}
4035
Process = {
4136
param($Parameters, $Value, $ErrorTarget)
4237

0 commit comments

Comments
 (0)