Repository navigation
ci: use GitHub App tokens instead of the cdrci machine-user tokens - #32218
Merged
Merged
Conversation
- aigateway-prices-refresh: coder-automations App (contents and pull requests write on coder/coder) opens the refresh PR, so CI still runs. - contrib (CLA): coder-cla App (contents write on coder/cla only) records signatures. - audit-docs-paths: coder-ci-reader App (contents read, scoped to coder/coder.com) checks out coder.com. Each token is minted per run, expires within an hour, and is scoped to one repository. The App keys live in the main environment. Co-Authored-By: Claude Opus 5.5 <[email protected]>
kylecarbs
requested review from
jdomeracki-coder and
nickvigilante
as code owners
November 16, 2026 01:33
sreya
approved these changes
Nov 16, 2026
cjfit
approved these changes
Nov 16, 2026
Shelnutt2
approved these changes
Nov 16, 2026
kylecarbs
enabled auto-merge (squash)
November 16, 2026 01:38
kylecarbs
disabled auto-merge
November 16, 2026 01:40
kylecarbs
enabled auto-merge (squash)
November 16, 2026 01:40
kylecarbs
had a problem deploying
to
docs-preview
November 16, 2026 01:41 — with
GitHub Actions
Failure
This branch had an error being deployed
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
Replaces the
cdrci/cdrci2personal access tokens in three workflows with short-lived GitHub App tokens. Each token is scoped to one repository and the permissions it needs.aigateway-prices-refreshCDRCI_GITHUB_TOKENcoder-automationsApp: contents + pull requests write oncoder/coder. App-opened PRs still trigger CI.contrib(CLA)CDRCI2_GITHUB_TOKENcoder-claApp: contents write oncoder/claonly.audit-docs-pathsCDRCI_GITHUB_TOKENcoder-ci-readerApp: contents read oncoder/coder.comonly.The App IDs and keys are already in the
mainenvironment, which all three jobs already use. Nothing else in the jobs changes.The
CDRCI_GITHUB_TOKENuses inrelease.yaml(winget) are separate: they need a token for a fork on a personal account, which an App can't provide.Testing
actionlintis clean.zizmor: no new findings. The two it reports (the archived CLA action, andcommunity-label's token) were already onmain.aigateway-prices-refreshonce, and commentrecheckon a community PR to confirm the CLA bot.🤖 Generated with Claude Code