opencode/.github/release
2026-11-19 20:18:12 -06:00
..
cf fix(deploy): run Cloudflare deploys from verified artifacts behind pinned targets 2026-11-11 04:51:07 -05:00
download fix(deploy): run Cloudflare deploys from verified artifacts behind pinned targets 2026-11-11 04:51:07 -05:00
entitlements feat(desktop): signed-in browser pane with extensions, previews, prompts and agent safeguards (#63002) 2026-11-19 20:18:12 -06:00
targets fix(legacy): keep github app secrets in production (#63423) 2026-11-11 19:49:20 -05:00
upload fix(deploy): run Cloudflare deploys from verified artifacts behind pinned targets 2026-11-11 04:51:07 -05:00
wrangler fix(deploy): run Cloudflare deploys from verified artifacts behind pinned targets 2026-11-11 04:51:07 -05:00
cloudflare-token.sh ci: deploy dev workers in anomaly-dev (#63379) 2026-11-11 16:17:46 -05:00
deploy-data.sh ci: deploy dev workers in anomaly-dev (#63379) 2026-11-11 16:17:46 -05:00
deploy-files.sh ci: deploy dev workers in anomaly-dev (#63379) 2026-11-11 16:17:46 -05:00
deploy-legacy.sh fix(legacy): keep github app secrets in production (#63423) 2026-11-11 19:49:20 -05:00
deploy-site.sh ci: deploy dev workers in anomaly-dev (#63379) 2026-11-11 16:17:46 -05:00
deploy-update.sh fix(deploy): run Cloudflare deploys from verified artifacts behind pinned targets 2026-11-11 04:51:07 -05:00
import-certificate.sh isolate release credentials and process daemon publishing 2026-11-11 20:21:45 -05:00
lib.sh ci: deploy dev workers in anomaly-dev (#63379) 2026-11-11 16:17:46 -05:00
plan-release.sh chore(ci): publish dev builds every 6 hours instead of on every push (#63674) 2026-11-12 23:55:32 -05:00
publish-aur.sh ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
publish-cli.sh ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
publish-desktop.sh ci(release): publish desktop on every dev commit (#59507) 2026-10-27 15:03:54 +10:00
publish-discord.sh chore(release): require notes for stable releases and remove old changelog tools (#60429) 2026-10-29 21:37:15 -05:00
publish-docker.sh ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
publish-github-release.sh fix(release): restore desktop app-update.yml and keep V1 as the GitHub Latest release (#59529) 2026-10-27 16:26:07 +10:00
publish-homebrew.sh ci(release): push the Homebrew formula with a homebrew-tap deploy key (#59516) 2026-10-27 01:26:24 -04:00
publish-npm.sh fix(release): publish platform packages before the cli package (#63124) 2026-11-10 09:00:25 -05:00
publish-process-daemon.sh isolate release credentials and process daemon publishing 2026-11-11 20:21:45 -05:00
publish-version-pr.sh ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
README.md fix(deploy): run Cloudflare deploys from verified artifacts behind pinned targets 2026-11-11 04:51:07 -05:00
render-aur.sh ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
render-homebrew.sh ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
render-winget.sh chore(ci): point winget and docs checks at /docs (#62400) 2026-11-06 18:17:34 +00:00
repack-windows.sh ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
sign-cli-macos.sh ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
sign-desktop-macos.sh fix(ci): sign macOS builds with release environment credentials (#59760) 2026-10-27 18:55:37 -04:00
tag-release.sh isolate release credentials and process daemon publishing 2026-11-11 20:21:45 -05:00
unpack-windows.sh ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
verify-artifacts.sh fix(ci): treat require-digests=false as off in verify-artifacts 2026-11-11 06:43:07 -05:00
verify-signatures-windows.sh ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00
with-secrets.sh isolate release credentials and process daemon publishing 2026-11-11 20:21:45 -05:00
write-checksums.sh ci: separate release builds from signing and publishing (#59046) 2026-10-26 14:21:29 -04:00

Deploy boundary

The deploy workflows (deploy.yml, deploy-site.yml, deploy-files.yml, deploy-update.yml) split every service in two:

  • build runs repository code (bun install, cf build, bun script/build.ts, wrangler deploy --dry-run) with no environment, no secrets, and no OIDC token. It uploads the deploy-ready output with a SHA256SUMS and reports that manifest's digest as a job output.
  • deploy runs in the dev or production environment, assumes the stage's AWS role, mints a short-lived Cloudflare token from the token issuer (cloudflare-token.sh), and checks out only .github/release/. It verifies the artifact against the digest the build job reported, installs the pinned cf/wrangler CLI (npm ci --ignore-scripts), and runs only a deploy-*.sh script here.

Repository code outside .github/ does not need Dax's review, so the deploy job must never execute it. The scripts treat the artifact as data: Worker code and assets may change freely, but names, routes, custom domains, crons, Workflow and export names, and every binding (including service bindings to other Workers) come from targets/. An artifact whose resolved config is not byte-for-byte one of those pinned targets is refused before the token is used.

For cf services the pinned target is also what cf reads: the script copies the target over the artifact's config after validating it. For wrangler services the artifact is only index.js; the complete wrangler.json is the pinned target.

Why the token can be account-wide

Cloudflare has no per-Worker permission for Workflows. The data sync Worker owns a Workflow, and PUT /accounts/<id>/workflows/<name> needs account-wide Workers Scripts Write, so Individual Workers Editor fails that deploy.

Dev and production therefore mint a token that can write any Worker on the account. That is only safe because the code holding it is this directory: one reviewed script per service, on a verified artifact, with every destination pinned in targets/. Do not move a deploy back into a job that runs repository code, and do not widen a script's accepted targets without review.

Production keeps this token only for a Dax-approved fast-forward of dev; a dev merge cannot reach the production environment.

Production promotion notes

Moving dev to production deploys the same pinned targets with the same scripts, but production holds an account-wide token and a bad deploy is live.

Before promoting:

  1. Confirm every dev deploy job is green on the commit being promoted (deploy, deploy-site, deploy-files; deploy-update runs on production only).
  2. Diff .github/release/targets/ against origin/production. Any change here is a change to what production may deploy.
  3. Rollback is a fast-forward back to the previous production commit, which redeploys the previous Worker code from the same pinned targets. If a target itself changed and must be reverted, revert it with the deploy commit.
  4. The production deploy job runs only .github/release/ at github.sha; it does not run repo code. The build job still runs repo code, but with no secrets and no OIDC token.