Files
coder/.github
Kyle CarberryandClaude Opus 5.5 85a786c4fa ci: mint release and package publisher App tokens with Cloud KMS (#32331)
Switches every GitHub App token step in the release workflows from
`actions/create-github-app-token` with a private key to
[coder/github-app-token-action](https://github.com/coder/github-app-token-action).
Each App's key becomes a non-exportable Cloud KMS key that only these
workflows, in their environments, can sign with.

**`coder-release-publisher`**
- `release.yaml` (environment `release`): the tagging token and the
release-publishing token.
- `create-release-branch.yaml` (environment `release-refs`, `main`
only): the release-branch token. The job gets `id-token: write`.
- Scope is unchanged: `repositories: coder`, `contents: write`,
`workflows: write`.

**`coder-package-publisher`**
- `release.yaml` `publish-packages` (environment `release-publish`):
`repositories: packages`, `contents: write`.
- `release.yaml` `publish-homebrew` (environment `release-publish`):
`repositories: homebrew-coder`, `contents: write`, `pull_requests:
write`.
- Both jobs get job-level `contents: read` and `id-token: write`.
Before, they inherited the workflow's `contents: read`.

**Unchanged**
- Who approves: every environment still needs a release manager, and
admins can't bypass.
- Each token covers one repository and is revoked when its job ends.
- The KMS keys, `APP_KEYS_WORKLOAD_ID_PROVIDER` and the App IDs are
environment secrets, already set in `release`, `release-refs` and
`release-publish`.

Release branches 2.39, 2.38, 2.37, 2.34 and 2.29 run their own
`release.yaml` and get the same change once this merges. The old private
keys are deleted after that.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 17:32:38 -05:00
..