Skip to content

ci: use GitHub App tokens instead of the cdrci machine-user tokens - #32218

Merged
kylecarbs merged 1 commit into
mainfrom
ci/app-tokens-for-cdrci
Nov 16, 2026
Merged

kylecarbs merged 1 commit into
mainfrom
ci/app-tokens-for-cdrci

Conversation

@kylecarbs

Copy link
Copy Markdown
Member

Summary

Replaces the cdrci/cdrci2 personal access tokens in three workflows with short-lived GitHub App tokens. Each token is scoped to one repository and the permissions it needs.

Workflow Was Now
aigateway-prices-refresh CDRCI_GITHUB_TOKEN coder-automations App: contents + pull requests write on coder/coder. App-opened PRs still trigger CI.
contrib (CLA) CDRCI2_GITHUB_TOKEN coder-cla App: contents write on coder/cla only.
audit-docs-paths CDRCI_GITHUB_TOKEN coder-ci-reader App: contents read on coder/coder.com only.

The App IDs and keys are already in the main environment, which all three jobs already use. Nothing else in the jobs changes.

The CDRCI_GITHUB_TOKEN uses in release.yaml (winget) are separate: they need a token for a fork on a personal account, which an App can't provide.

Testing

  • actionlint is clean.
  • zizmor: no new findings. The two it reports (the archived CLA action, and community-label's token) were already on main.
  • After merge: dispatch aigateway-prices-refresh once, and comment recheck on a community PR to confirm the CLA bot.

🤖 Generated with Claude Code

- 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
kylecarbs temporarily deployed to main November 16, 2026 01:38 — with GitHub Actions Inactive
@kylecarbs
kylecarbs enabled auto-merge (squash) November 16, 2026 01:38
@kylecarbs
kylecarbs disabled auto-merge November 16, 2026 01:40
@kylecarbs
kylecarbs enabled auto-merge (squash) November 16, 2026 01:40
@kylecarbs
kylecarbs merged commit 3c953d2 into main Nov 16, 2026
54 of 56 checks passed
@kylecarbs
kylecarbs deleted the ci/app-tokens-for-cdrci branch November 16, 2026 01:41
@kylecarbs
kylecarbs temporarily deployed to main November 16, 2026 01:41 — with GitHub Actions Inactive
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 16, 2026

This branch had an error being deployed

1 failed and 1 inactive deployments
docs-preview — 30963837 Deployed Nov 16, 2026 by kylecarbs via cleanup #78
main — 30963837 Deployed Nov 16, 2026 by kylecarbs via cla #257192
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants