Skip to content

Add action to use github app via github workflows#14219

Merged
weshaggard merged 5 commits intoAzure:mainfrom
weshaggard:AddGHAppWorkflowLogin
Mar 2, 2026
Merged

Add action to use github app via github workflows#14219
weshaggard merged 5 commits intoAzure:mainfrom
weshaggard:AddGHAppWorkflowLogin

Conversation

@weshaggard
Copy link
Member

No description provided.

@weshaggard weshaggard requested a review from a team as a code owner February 27, 2026 21:26
Copilot AI review requested due to automatic review settings February 27, 2026 21:26
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.yml that invokes the existing PowerShell script
  • eng/common/scripts/login-to-github.ps1 updated to detect GitHub Actions and export tokens via GITHUB_ENV with ::add-mask:: masking, alongside the existing ADO ##vso pipeline 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

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

@azure-sdk
Copy link
Collaborator

The following pipelines have been queued for testing:
java - template
java - template - tests
js - template
net - template
net - template - tests
python - template
python - template - tests
You can sign off on the approval gate to test the release stage of each pipeline.
See eng/common workflow

azure-sdk added a commit to Azure/azure-sdk-for-js that referenced this pull request Mar 2, 2026
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>
azure-sdk added a commit to Azure/azure-sdk-for-rust that referenced this pull request Mar 2, 2026
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>
@weshaggard weshaggard merged commit a4f730e into Azure:main Mar 2, 2026
10 checks passed
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.

4 participants