Title: ci: publish GHCR images through coder/ghcr-publisher by kylecarbs · Pull Request #8154 · coder/code-server · GitHub
Open Graph Title: ci: publish GHCR images through coder/ghcr-publisher by kylecarbs · Pull Request #8154 · coder/code-server
X Title: ci: publish GHCR images through coder/ghcr-publisher by kylecarbs · Pull Request #8154 · coder/code-server
Description: The problem. GitHub grants package write per repository. ghcr.io/coder/code-server gives coder/code-server Write, so any workflow on any branch here (23 maintainers can push branches) can overwrite latest, 4.146.0 or any other tag. The release environment and tag rulesets don't apply to GITHUB_TOKEN. What changes in the docker job. Docker Hub is unchanged. Staging push: bake pushes the GHCR copy to ghcr.io/coder/code-server-staging and records each image's pushed digest (--metadata-file). No staging tag is ever read back. One release attestation (https://coder.com/attestations/code-server-release/v1) covers all images. It states the version, the tag's commit, and each digest's public GHCR tags, computed from the same bake file with the public registry name, so they're exactly the tags pushed today. For v4.146.0, the map matches the 24 live tags across 7 images exactly. Promotion: it dispatches coder/ghcr-publisher (promote-code-server.yaml) with a coder-ghcr-dispatch token (contents: write on ghcr-publisher only), revokes the token, and waits for the version tags. What the publisher checks: the release is immutable and created by the release App (the same check as this workflow's verify job). Every digest must be covered by the attestation from publish.yaml at the tag's commit. Version tags never move. latest, debian, ubuntu and the other rolling tags move only for the highest stable version. Re-runs keep the earlier build. Prerequisites (all done 2026-11-22) coder/ghcr-publisher#2 merged The coder-ghcr-dispatch App exists (coder/gcp#472, coder/github-org-terraform#206). The release environment has CODER_GHCR_DISPATCH_APP_ID and CODER_GHCR_DISPATCH_APP_KMS_KEY; APP_KEYS_WORKLOAD_ID_PROVIDER is already there. code-server-staging exists: coder/code-server Write, ghcr-publisher Read ghcr-publisher has Write on code-server After the next release promotes successfully: set coder/code-server to Read on ghcr.io/coder/code-server. actionlint and shellcheck are clean. zizmor's findings on this file (1 cache-poisoning, 4 artipacked) are the same as on main. 🤖 Generated with Claude Code
Open Graph Description: The problem. GitHub grants package write per repository. ghcr.io/coder/code-server gives coder/code-server Write, so any workflow on any branch here (23 maintainers can push branches) can overwrite...
X Description: The problem. GitHub grants package write per repository. ghcr.io/coder/code-server gives coder/code-server Write, so any workflow on any branch here (23 maintainers can push branches) can overwrite...
Opengraph URL: https://github.com/coder/code-server/pull/8154
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:f854c472-9eca-2f8d-7bfc-0d3cc5a909bd |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E8F6:1C1B6D:3F79AB:592A52:6B044124 |
| html-safe-nonce | c03aae381318d5b9d084e11dba5ae94c13824fb87f3eaf5c3cde4644a7b53f55 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOEY2OjFDMUI2RDozRjc5QUI6NTkyQTUyOjZCMDQ0MTI0IiwidmlzaXRvcl9pZCI6IjIwMDAwNzY2NTI3NTUwNDI1OTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 67d08793465efeecffb75762a35ef6a6a52a6da7ee5b4bc169871390bb4c3a2d |
| hovercard-subject-tag | pull_request:5421039812 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/coder/code-server/pull/8154/files |
| twitter:image | https://avatars.githubusercontent.com/u/7122116?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/7122116?s=400&v=4 |
| og:image:alt | The problem. GitHub grants package write per repository. ghcr.io/coder/code-server gives coder/code-server Write, so any workflow on any branch here (23 maintainers can push branches) can overwrite... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/coder/code-server git https://github.com/coder/code-server.git |
| octolytics-dimension-user_id | 95932066 |
| octolytics-dimension-user_login | coder |
| octolytics-dimension-repository_id | 172953845 |
| octolytics-dimension-repository_nwo | coder/code-server |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 172953845 |
| octolytics-dimension-repository_network_root_nwo | coder/code-server |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | no-cache |
Viewport: width=device-width