Skip to content

ci: changesets release uses github app token#770

Merged
andykenward merged 1 commit into
mainfrom
ci/release-app-token
May 31, 2026
Merged

ci: changesets release uses github app token#770
andykenward merged 1 commit into
mainfrom
ci/release-app-token

Conversation

@andykenward

Copy link
Copy Markdown
Owner

What

Route changesets/action through the GitHub App token (the same App added in #769) by setting its GITHUB_TOKEN env to ${{ steps.app-token.outputs.token }}.

Why

The changesets "Version Packages" PR was created with the default GITHUB_TOKEN, so — like the other automation PRs fixed in #769 — it opened with no CI (test, check-dist, zizmor):

"events triggered by the GITHUB_TOKEN … will not create a new workflow run"
Trigger a workflow

This is about token identity, not permission level — a GITHUB_TOKEN-authored PR can't trigger workflows regardless of scopes. Authoring it via the App fixes that, so the release PR (which carries the version bump and CHANGELOG.md updates) now runs the actions.

Notes

  • App token is scoped to contents: write (push the version/CHANGELOG commit, tags, GitHub releases) and pull-requests: write (create/update the Version Packages PR).
  • Job-level permissions are unchanged, including id-token: write for npm provenance (OIDC trusted publishing).
  • Side effect (intended): the v* tags pushed at publish time will now trigger sync-readme-versions, whose PR is also App-authored (ci: pr automation use github app token #769) and so will run CI too.
  • Requires the same repo config as ci: pr automation use github app token #769: APP_CLIENT_ID (variable) and APP_PRIVATE_KEY (secret).

🤖 Generated with Claude Code

Route changesets/action through the GitHub App token so the
"Version Packages" PR is authored by the App and therefore triggers
CI (test, check-dist, zizmor). The default GITHUB_TOKEN cannot trigger
downstream workflow runs regardless of its permission scopes. Job
permissions are left intact; the App token is scoped to contents and
pull-requests writes.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@changeset-bot

changeset-bot Bot commented May 31, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 1bcad68

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@andykenward andykenward merged commit a842391 into main May 31, 2026
10 checks passed
@andykenward andykenward deleted the ci/release-app-token branch May 31, 2026 18:34
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.

1 participant