chore: use github app token for beachball release - #36634
Merged
Elizabeth Craig (ecraig12345) merged 3 commits intoAug 27, 2026
Conversation
📊 Bundle size report✅ No changes found |
|
Pull request demo site: URL |
Elizabeth Craig (ecraig12345)
force-pushed
the
user/elcraig/github-app-auth
branch
2 times, most recently
from
August 26, 2026 04:29
782b0e4 to
08cc663
Compare
Elizabeth Craig (ecraig12345)
marked this pull request as ready for review
August 26, 2026 04:29
Elizabeth Craig (ecraig12345)
force-pushed
the
user/elcraig/github-app-auth
branch
from
August 26, 2026 04:31
08cc663 to
e00d294
Compare
Copilot started reviewing on behalf of
Elizabeth Craig (ecraig12345)
August 26, 2026 05:48
View session
Contributor
There was a problem hiding this comment.
Pull request overview
Migrates release pipelines from a PAT to a temporary GitHub App token and optimizes release-note PR lookups.
Changes:
- Adds token creation/revocation around publishing.
- Adopts Beachball v3 token variables.
- Adds commit-based PR caching, though the Beachball renderer cache currently uses object identity.
Merge confidence: 68/100 — token permissions and renderer caching require correction.
Reviewed changes
Copilot reviewed 16 out of 16 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
.devops/templates/run-with-token.yml |
Creates and revokes the app token. |
.devops/templates/tools.yml |
Configures the app’s Git identity. |
.vscode/launch.json |
Supplies the release-note token via environment. |
azure-pipelines.release.yml |
Updates v8 publishing and release notes. |
azure-pipelines.release.web-components.yml |
Updates Web Components publishing. |
azure-pipelines.release.tools.yml |
Updates tools publishing. |
azure-pipelines.release.tools-experimental.yml |
Renames the npm token variable. |
azure-pipelines.release.headless.yml |
Updates headless publishing. |
azure-pipelines.release-headless-experimental.yml |
Renames the npm token variable. |
azure-pipelines.release-vnext.yml |
Updates v9 publishing. |
azure-pipelines.release-vnext-experimental.yml |
Renames the npm token variable. |
azure-pipelines.release-vnext-nightly.yml |
Renames the npm token variable. |
scripts/beachball/src/customRenderers.ts |
Uses the app token and adds PR caching. |
scripts/beachball/src/shared.config.ts |
Updates Beachball token documentation. |
scripts/update-release-notes/src/init.ts |
Reads GitHub authentication from TOKEN. |
scripts/update-release-notes/src/pullRequests.ts |
Caches PR results by commit. |
Suppressed comments (1)
scripts/beachball/src/customRenderers.ts:14
- This variable now contains a GitHub App installation token, not a personal access token. Keeping the
githubPATname makes the authentication source misleading; rename it togithubToken(including its warning check and Octokit initialization).
const githubPAT = process.env.BEACHBALL_GIT_TOKEN;
if (!githubPAT && (process.argv.includes('bump') || process.argv.includes('publish'))) {
console.warn('\nBEACHBALL_GIT_TOKEN environment variable not found. GitHub requests may be rate-limited.\n');
}
const github = new Octokit({
...fluentRepoDetails,
...(githubPAT && { auth: 'token ' + githubPAT }),
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Martin Hochel (Hotell)
approved these changes
Aug 26, 2026
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Elizabeth Craig (ecraig12345)
enabled auto-merge (squash)
August 27, 2026 05:47
Elizabeth Craig (ecraig12345)
disabled auto-merge
August 27, 2026 06:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As a temporary measure until #36626 is ready, apply only the changes to release with the
office-ogx-auth-helperGitHub app's token. There's a temporary template.devops/templates/run-with-token.ymlwhich handles getting and revoking the token, and takes steps to run inside as a parameter.To validate that creating the token works, I ran the pipeline against this branch. All branch rules have been updated to allow the app to bypass.
Also update
scripts/beachball/src/customRenderers.tsandupdate-release-notesto use new token variables, and to cache the fetched PRs by commit, which should make the release process faster.