Add action to use github app via github workflows#14219
Add action to use github app via github workflows#14219weshaggard merged 5 commits intoAzure:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR introduces a new GitHub Actions composite action (eng/common/actions/login-to-github/action.yml) that wraps the existing login-to-github.ps1 script, enabling GitHub App token minting via Azure Key Vault in GitHub Actions workflows — previously this was only supported in Azure DevOps pipelines. The PowerShell script is also updated to detect the GitHub Actions environment and export tokens appropriately.
Changes:
- New composite action added at
eng/common/actions/login-to-github/action.ymlthat invokes the existing PowerShell script eng/common/scripts/login-to-github.ps1updated to detect GitHub Actions and export tokens viaGITHUB_ENVwith::add-mask::masking, alongside the existing ADO##vsopipeline variable support- Documentation in both files updated to reflect dual-platform support
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
eng/common/actions/login-to-github/action.yml |
New composite action that wraps the PowerShell script for use in GitHub Actions workflows |
eng/common/scripts/login-to-github.ps1 |
Added GitHub Actions token export (GITHUB_ENV + add-mask) and updated documentation |
|
The following pipelines have been queued for testing: |
|
The following pipelines have been queued for testing: |
Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#14219 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow) --------- Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#14219 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow) --------- Co-authored-by: Wes Haggard <Wes.Haggard@microsoft.com>
No description provided.