Commit 7b86980
authored
(GHA) Fix authorization workflow (MicrosoftDocs#12252)
Prior to this change, the authorization workflow used the PowerShell
script parameter names and casing for the action parameter names.
This worked for all previous parameters because PowerShell is case
insensitive and the parameters were only one word.
However, in MicrosoftDocs#12181, we added the `authorized_accounts` parameter
to the workflow. For GitHub Actions, we use `snake_case` for
parameter names, where PowerShell best practice is to use
`PascalCase`.
PowerShell's case insensitivity meant that we were able to handle
the prior parameters, which the workflow sends to the handler
scripts as the `INPUT_<ParameterName>` environment variables.
When we added `authorized_accounts`, the handler scripts were
looking for `INPUT_AuthorizedAccounts`, which doesn't exist.
This change updates the `Name` key for every defined parameter in
the `verification/authorization/v1` workflow to match the actual
workflow parameter name and casing.1 parent e65fd79 commit 7b86980
File tree
1 file changed
+6
-6
lines changed- .github/actions/verification/authorization/v1
1 file changed
+6
-6
lines changedLines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
| 53 | + | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
| 194 | + | |
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
0 commit comments