Skip to content

ci: update the Homebrew cask with the coder-package-publisher App - #286

Merged
kylecarbs merged 1 commit into
mainfrom
ci/package-publisher-app
Nov 16, 2026
Merged

kylecarbs merged 1 commit into
mainfrom
ci/package-publisher-app

Conversation

@kylecarbs

Copy link
Copy Markdown
Member

Summary

The update-cask job opened the homebrew-coder PR with CODERCI_GITHUB_TOKEN, a personal access token from a machine user that is no longer in the org. Now:

  • It mints a coder-package-publisher App token with contents + pull requests write on coder/homebrew-coder only. The token expires within an hour.
  • The job runs in the release-publish environment. It holds the App key, accepts only v* tags, and needs approval from release-managers (someone other than whoever published the release). This is the same gate as coder/coder's Homebrew update, because the App key can also write to coder/packages.

The cask PR itself is unchanged (same branch, title and assignee). It still needs an approval in homebrew-coder before it can merge.

Before merging: the release-publish environment comes from coder/github-org-terraform#49. After that applies, set the secrets:

gh secret set CODER_PACKAGE_PUBLISHER_APP_ID          --repo coder/coder-desktop-macos --env release-publish --body 5776613
gh secret set CODER_PACKAGE_PUBLISHER_APP_PRIVATE_KEY --repo coder/coder-desktop-macos --env release-publish < key.pem

Testing

actionlint and zizmor are clean. It runs on the next published release; the approval request appears on that release's run.

🤖 Generated with Claude Code

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>
@kylecarbs
kylecarbs merged commit 1f307df into main Nov 16, 2026
6 checks passed
@kylecarbs
kylecarbs deleted the ci/package-publisher-app branch November 16, 2026 01:57
@linear-code

linear-code Bot commented Nov 16, 2026

Copy link
Copy Markdown

SEC-960

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