Skip to content

docs(release): template-sync App needs Workflows write permission - #294

Merged
jouwdan merged 1 commit into
mainfrom
claude/release-app-workflows-perm
Aug 30, 2026
Merged

docs(release): template-sync App needs Workflows write permission#294
jouwdan merged 1 commit into
mainfrom
claude/release-app-workflows-perm

Conversation

@jouwdan

@jouwdan jouwdan commented Aug 30, 2026

Copy link
Copy Markdown
Collaborator

Why

The 0.26.1 release's templates:sync step failed:

! [remote rejected] HEAD -> main (refusing to allow a GitHub App to create or
  update workflow `.github/workflows/build.yml` without `workflows` permission)

The deploy-template mirror includes .github/workflows/build.yml, and GitHub rejects a GitHub App push that creates or updates any file under .github/workflows/ unless the App has the Workflows permission. The TEMPLATE_SYNC App was set up with Contents: read and write only, so it synced every file fine — until a workflow file actually changed (the quick-start split updated build.yml to build Dockerfile.prebuilt), and then the whole push was rejected.

What

Documents in docs/contributing/release.md that the App needs Contents and Workflows read/write, and to approve the added permission on the installation.

No release.yml change is needed: its create-github-app-token step passes no permission-* inputs, so the minted token already carries every permission the App holds — granting the App the Workflows permission is sufficient.

The operational fix (outside this PR)

Grant the TEMPLATE_SYNC App the Workflows: Read and write permission, approve it on the installation for meith-dev/template and meith-dev/vercel-template, then re-run the failed publish-templates job. Until then the template repos stay a release behind and the "Deploy template repositories are in sync" check stays red.

🤖 Generated with Claude Code


Generated by Claude Code

The deploy-template mirror includes .github/workflows/build.yml, and GitHub
rejects an App push that creates or updates any file under .github/workflows/
without the Workflows permission. An App with Contents-only write syncs fine
until a workflow file changes, then fails the whole push — which is what broke
templates:sync when build.yml changed. Document that the App needs both
Contents and Workflows read/write, and to approve the added permission on the
installation.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01MNjDm3zR8M4HMyixCVgHwP
@jouwdan
jouwdan merged commit 25f9961 into main Aug 30, 2026
15 of 16 checks passed
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