* ci: open the update and Helm/changelog PRs as coder-automations
The org doesn't let GITHUB_TOKEN create pull requests, so publish.yaml's
repo job failed to open the v4.146.0 Helm/changelog PR, and update.yaml
will fail to open the next "Update Code to X" PR.
Both jobs now check out without persisted credentials, run their update
script, then mint a coder-automations token (Cloud KMS) for
coder/code-server only, and push and open the PR with it. update.yaml
runs in the new main-only update environment; the repo job in release.
GITHUB_TOKEN drops to contents: read. PRs opened by the App also trigger
CI, which GITHUB_TOKEN-created ones didn't.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* ci(publish): no dependency cache in the npm publish job
setup-node caches the package manager's store by default, so a cache
saved by another run could reach the job that publishes to npm. Turn it
off there (zizmor cache-poisoning).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
For the coder/code-server-aur update, generate a token using our GitHub
app instead.
For the others that open PRs against coder/code-server, just use
GITHUB_TOKEN since that apparently works. I also moved the env block to
the step that executes the `gh` cli rather than setting it job-level, mostly to
match the aur step, but also to make it clearer where the env var actually
applies.
PRs created through GITHUB_TOKEN apparently cannot trigger other
workflows, but I think it should be OK to trigger them manually (will
switch to the app if this becomes annoying).