GeezerVison is showing github.com — github-backup: add protected cf Versions release workflow by dezren39 · Pull Request #12567 · developing-today/code
Conversation
dezren39
commented
Nov 22, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
Adds an opt-in GitHub Actions release path for the existing developing-today-backup Worker while leaving the operator deploy tool unchanged.
upload uses cf workers versions create and stops before traffic changes.
- A separate
promote dispatch requires the full version UUID, checks the two required secret bindings and the existing GHB_EVENTS KV namespace ID, then promotes exactly that UUID at 100%. It verifies the latest deployment and /health afterward.
- The workflow runs only by manual dispatch from
main, uses a protected GitHub environment, grants contents: read, and pins checkout/setup-node by SHA plus Node/npm, cf, and Wrangler versions.
- Adds the
cf TypeScript config generated by cf migrate; the existing Worker name, compatibility date, source entrypoint, and KV namespace are retained. The existing wrangler.toml, deploy.mjs, and deploy.sh remain unchanged.
[email protected] was released Nov 17 and supports Config 1.0 / Build Output v1. Wrangler 4.163.0 is pinned to meet that release's delegated build requirement. cf release notes · Cloudflare Wrangler migration guidance · Node 24.22.0.
Before first use
Configure the developing-today-backup-production GitHub environment with at least one required reviewer and restrict deployments to main. Add CLOUDFLARE_ACCOUNT_ID as an environment variable and these environment secrets: CLOUDFLARE_API_TOKEN with Workers Editor scoped to this Worker, BACKUP_WORKER_BEARER, and BACKUP_WEBHOOK_SECRET from the existing Bitwarden entries. No repository settings or secrets were changed in this PR.
Verification
npm ci --no-audit --no-fund succeeded with Node 24.22.0 / npm 11.19.1; installed cf 1.0.0-rc.1 and Wrangler 4.163.0 matched the workflow pins.
node --test test/index.test.mjs test/release-version.test.mjs: 16 passed.
cf workers versions create --dry-run built the Worker with fixture-only secrets and showed the existing KV namespace ID plus both secret binding names; no upload occurred.
cf workers versions get --dry-run, cf workers deployments create --dry-run, and cf workers deployments list --dry-run rendered the expected API operations. The create dry-run showed the specified UUID at 100%; no API request or traffic change occurred.
- Both workflow YAML files parsed, all embedded
run scripts passed bash -n, and git diff --check passed.
No live deployment or traffic promotion was run. The GitHub environment protection and its secrets remain cutover prerequisites.
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Nov 22, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 57 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
949823b5-9374-4a07-b74d-a83c2ca6ec5b
Commits
-
Reviewing files that changed from the base of the PR and between 1d6ca73 and e8e2768.
Files ignored due to path filters: 1
-
infra/github-backup/worker/package-lock.json is excluded by !**/package-lock.json
Files selected for processing: 7
-
.github/workflows/github-backup-tests.yml
.github/workflows/github-backup-worker-release.yml
infra/github-backup/docs/RUNBOOK.md
infra/github-backup/worker/cloudflare.config.ts
infra/github-backup/worker/package.json
infra/github-backup/worker/release-version.mjs
infra/github-backup/worker/test/release-version.test.mjs
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 22, 2026
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.
|