Skip to content

ci: open Weaver sync PRs with the GitHub App - #43

Merged
castastrophe merged 3 commits into
mainfrom
castastrophe/app-token-release
Nov 6, 2026
Merged

castastrophe merged 3 commits into
mainfrom
castastrophe/app-token-release

Conversation

@castastrophe

@castastrophe castastrophe commented Nov 6, 2026 •

Copy link
Copy Markdown
Member

What

Run the template sync with the org GitHub App (allons-y-studio-bot) instead of the PAT_GITHUB secret.

Why

Weaver opens PRs in other repositories. The app token starts CI on them & drops a personal token.

How

  • First job step creates an app token from APP_CLIENT_ID & APP_PRIVATE_KEY with owner set to the org, so it covers every repository the app is installed on, not only this one.
  • Checkout & actions-weaver use it.
  • Templates are README blocks only, so no workflow files are changed in other repositories; the app has no workflows permission.

Test plan

Run "Sync templates" manually (workflow_dispatch) after merge:

  1. The sync PRs in other repositories are opened by allons-y-studio-bot[bot].
  2. CI runs on them.
  3. Check that the app is installed on every repository Weaver targets.

Sync templates with the org GitHub App token instead of PAT_GITHUB.
The app-id input of actions/create-github-app-token is deprecated. Use the public client ID instead.
@changeset-bot

changeset-bot Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: a5e1c01

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.

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

Keep the client ID alongside the private key as an org secret instead of inline.
@castastrophe
castastrophe added this pull request to the merge queue Nov 6, 2026
Merged via the queue into main with commit ae84f87 Nov 6, 2026
2 checks passed
@castastrophe
castastrophe deleted the castastrophe/app-token-release branch November 6, 2026 22:18
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