(GHA) Fix authorization workflow #12252
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Summary
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 #12181, we added the
authorized_accounts
parameter to the workflow. For GitHub Actions, we usesnake_case
for parameter names, where PowerShell best practice is to usePascalCase
.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 forINPUT_AuthorizedAccounts
, which doesn't exist.This change updates the
Name
key for every defined parameter in theverification/authorization/v1
workflow to match the actual workflow parameter name and casing.PR Checklist