Skip to content

Update PR and release operations to optionally support Github App#15388

Merged
scbedd merged 3 commits into
mainfrom
backwards-compatible-pr-creation
May 1, 2026
Merged

Update PR and release operations to optionally support Github App#15388
scbedd merged 3 commits into
mainfrom
backwards-compatible-pr-creation

Conversation

@scbedd
Copy link
Copy Markdown
Member

@scbedd scbedd commented Apr 29, 2026

The difference here, is that I can get this merged without affecting the bunch of satellite repo callsites of create-pull-request or create-tags-and-git-release.yml.

Doing it this way means that I can get a safe phased rollout where we are explicitly updating to pass the new token in the new locations. Then after it's all working passing GH_TOKEN explicitly, it'll be an easy one-shot pr to move the default of $(azure-sdk-pat) to $(GH_TOKEN).

Pipelines will take advantage of new default logic by removing $(azure-sdk-pat) from their variable group.

These assumptions are tested and confirmed working in this python - template release

Related to #9842

Copilot AI review requested due to automatic review settings April 29, 2026 22:58
@scbedd scbedd requested a review from a team as a code owner April 29, 2026 22:58
@scbedd scbedd self-assigned this Apr 29, 2026
@scbedd scbedd moved this from 🤔 Triage to 🔬 Dev in PR in Azure SDK EngSys 🚀🌒🧑‍🚀 Apr 29, 2026
Copy link
Copy Markdown
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 updates common Azure DevOps pipeline templates used for git pushes, PR creation, and GitHub releases to support GitHub App installation tokens (via login-to-github.yml) while keeping $(azuresdk-github-pat) as the default for backward compatibility.

Changes:

  • Add an AuthToken parameter to shared templates and thread it through to git push, PR creation, and release steps.
  • Update git remote URL construction to the x-access-token:<token>@github.com/... format for token-based authentication.
  • Add PushAuthToken support in PR creation to allow separate credentials for cross-org fork pushes vs. PR creation.
Show a summary per file
File Description
eng/common/pipelines/templates/steps/git-push-changes.yml Adds AuthToken parameter, passes it to rate-limit metrics, and uses it in the git remote URL for push auth.
eng/common/pipelines/templates/steps/create-tags-and-git-release.yml Adds AuthToken parameter and maps it to GH_TOKEN for the release script.
eng/common/pipelines/templates/steps/create-pull-request.yml Adds AuthToken + PushAuthToken parameters and threads them into push/PR creation steps; updates guidance for GitHub App token usage.

Copilot's findings

  • Files reviewed: 3/3 changed files
  • Comments generated: 1

Comment thread eng/common/pipelines/templates/steps/git-push-changes.yml Outdated
@azure-sdk
Copy link
Copy Markdown
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

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@azure-sdk
Copy link
Copy Markdown
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

@scbedd scbedd changed the title Update PR and release operations to Github App Update PR and release operations to optionally support Github App Apr 30, 2026
Comment thread eng/common/pipelines/templates/steps/create-pull-request.yml
Comment thread eng/common/pipelines/templates/steps/create-pull-request.yml
…on for the new builds, but other than that, no impact
@azure-sdk
Copy link
Copy Markdown
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

scbedd added a commit to Azure/azure-sdk-for-js that referenced this pull request May 1, 2026
Sync eng/common directory with azure-sdk-tools for PR
Azure/azure-sdk-tools#15388 See [eng/common
workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow)

---------

Co-authored-by: Scott Beddall <scbedd@microsoft.com>
Co-authored-by: Scott Beddall <45376673+scbedd@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
scbedd added a commit to Azure/azure-sdk-for-rust that referenced this pull request May 1, 2026
Sync eng/common directory with azure-sdk-tools for PR
Azure/azure-sdk-tools#15388 See [eng/common
workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow)

---------

Co-authored-by: Scott Beddall <scbedd@microsoft.com>
Co-authored-by: Scott Beddall <45376673+scbedd@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@scbedd scbedd merged commit 79d4eb5 into main May 1, 2026
7 checks passed
@scbedd scbedd deleted the backwards-compatible-pr-creation branch May 1, 2026 19:16
@kurtzeborn kurtzeborn moved this from 🔬 Dev in PR to 🎊 Closed in Azure SDK EngSys 🚀🌒🧑‍🚀 May 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

5 participants