Skip to content

ci: mint the package publisher App token with Cloud KMS - #294

Merged
kylecarbs merged 1 commit into
mainfrom
package-publisher-kms
Nov 17, 2026
Merged

kylecarbs merged 1 commit into
mainfrom
package-publisher-kms

Conversation

@kylecarbs

@kylecarbs kylecarbs commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Switches update-cask from actions/create-github-app-token with a private key to coder/github-app-token-action. The coder-package-publisher App's key becomes a non-exportable Cloud KMS key.

  • Who can sign: only main's release-sign.yml running in release-publish. release.yml always calls main's copy, the environment only accepts v* tags, and a release manager approves.
  • Token scope is unchanged: repositories: homebrew-coder, contents: write, pull_requests: write. The token is revoked when the job ends.
  • Permissions: update-cask gets id-token: write. The caller already grants it.
  • Secrets: CODER_PACKAGE_PUBLISHER_APP_KMS_KEY and APP_KEYS_WORKLOAD_ID_PROVIDER are already set in release-publish.

Related: coder/coder's release workflows use the same App and move in coder/coder#32331. The old private key is deleted once both have shipped a release.

🤖 Generated with Claude Code

update-cask signs the coder-package-publisher JWT in Cloud KMS instead of
using a private key secret. Only main's release-sign.yml in
release-publish may sign; the token still reaches only
coder/homebrew-coder and is revoked when the job ends.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kylecarbs
kylecarbs marked this pull request as ready for review November 17, 2026 22:32
@kylecarbs
kylecarbs requested a review from a team November 17, 2026 22:32
@kylecarbs
kylecarbs merged commit afd4744 into main Nov 17, 2026
6 checks passed
@kylecarbs
kylecarbs deleted the package-publisher-kms branch November 17, 2026 22:38
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