Skip to content

Conversation

michaeltlombardi
Copy link
Contributor

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 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.

PR Checklist

  • Descriptive Title: This PR's title is a synopsis of the changes it proposes.
  • Summary: This PR's summary describes the scope and intent of the change.
  • Contributor's Guide: I have read the contributor's guide.
  • Style: This PR adheres to the style guide.

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.
@michaeltlombardi michaeltlombardi force-pushed the gha/main/fix-authorized-accounts branch from 3f334ff to 8c5b6ad Compare July 31, 2025 14:11

This comment was marked as outdated.

Copy link
Contributor

Learn Build status updates of commit 8c5b6ad:

✅ Validation status: passed

File Status Preview URL Details
.github/actions/verification/authorization/v1/Parameters.psd1 ✅Succeeded

For more details, please refer to the build report.

@sdwheeler sdwheeler merged commit 7b86980 into MicrosoftDocs:main Jul 31, 2025
3 of 4 checks passed
@michaeltlombardi michaeltlombardi deleted the gha/main/fix-authorized-accounts branch July 31, 2025 15:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants