Repository navigation
ci: update the Homebrew cask with the coder-package-publisher App - #286
Merged
Merged
Conversation
The cask update mints a coder-package-publisher App token (contents and pull requests write on coder/homebrew-coder only) instead of using CODERCI_GITHUB_TOKEN. The job runs in the release-publish environment, which holds the App key, accepts only v* tags and needs a release manager's approval. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ethanndickson
approved these changes
Nov 16, 2026
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.
Summary
The
update-caskjob opened thehomebrew-coderPR withCODERCI_GITHUB_TOKEN, a personal access token from a machine user that is no longer in the org. Now:coder-package-publisherApp token with contents + pull requests write oncoder/homebrew-coderonly. The token expires within an hour.release-publishenvironment. It holds the App key, accepts onlyv*tags, and needs approval fromrelease-managers(someone other than whoever published the release). This is the same gate ascoder/coder's Homebrew update, because the App key can also write tocoder/packages.The cask PR itself is unchanged (same branch, title and assignee). It still needs an approval in
homebrew-coderbefore it can merge.Before merging: the
release-publishenvironment comes from coder/github-org-terraform#49. After that applies, set the secrets:Testing
actionlintandzizmorare clean. It runs on the next published release; the approval request appears on that release's run.🤖 Generated with Claude Code