Skip to content

Switch PAT to GitHubApps#7163

Open
chidozieononiwu wants to merge 1 commit into
Azure:mainfrom
chidozieononiwu:pat-to-github-apps
Open

Switch PAT to GitHubApps#7163
chidozieononiwu wants to merge 1 commit into
Azure:mainfrom
chidozieononiwu:pat-to-github-apps

Conversation

@chidozieononiwu

@chidozieononiwu chidozieononiwu commented Jun 12, 2026

Copy link
Copy Markdown
Member

This pull request introduces updates to the archetype-cpp-release.yml pipeline template to improve authentication and GitHub integration. The main changes focus on standardizing token usage and ensuring proper authentication for GitHub operations.

Authentication and GitHub Integration Updates:

  • Added a step to log in to GitHub using the login-to-github.yml template, parameterized with TokenOwners for proper token scoping.
  • Updated the authentication token used by the Add-IssueComment.ps1 script from $(azuresdk-github-pat) to $(GH_TOKEN) to align with the new login process.

cpp - template

Part of resolving Azure/azure-sdk-tools#9842

@chidozieononiwu chidozieononiwu self-assigned this Jun 12, 2026
Copilot AI review requested due to automatic review settings June 12, 2026 01:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates the C++ release pipeline template to use GitHub App–minted tokens for GitHub operations, reducing reliance on the legacy PAT-based secret.

Changes:

  • Adds the shared login-to-github.yml step to mint a GitHub App installation token scoped to $(VcpkgPrRepoOwner).
  • Switches Add-IssueComment.ps1 authentication from $(azuresdk-github-pat) to $(GH_TOKEN).

Comment thread eng/pipelines/templates/stages/archetype-cpp-release.yml
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