Skip to content

feat(queue-transport-alert): deploy through trusted GitHub Actions - #12550

Merged
dezren39 merged 4 commits into
mainfrom
codex/qta-gha-cf-versions
Nov 23, 2026
Merged

dezren39 merged 4 commits into
mainfrom
codex/qta-gha-cf-versions

Conversation

@dezren39

@dezren39 dezren39 commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

Summary

Adds a trusted, manual GitHub Actions path for the queue-transport-alert Worker while retaining the operator deployment path.

  • Upload builds and uploads a code/config version only. It carries no Worker runtime binding values and does not promote or mutate cron triggers.
  • Upload records a receipt binding Worker, source SHA/tag, version ID, current 100% baseline version, upload run ID/attempt, event, ref, and workflow path.
  • Promotion downloads the receipt from the exact upload run and verifies the GitHub Actions run completed successfully for this workflow path, workflow_dispatch, trusted main and the receipt SHA. It checks out and builds that exact source commit.
  • Promotion checks Cloudflare’s Worker/version/tag association and refuses if the serving baseline changed since upload, so omitted runtime bindings cannot silently inherit from a different release. It promotes the explicit version at 100% and preserves serving/status verification.
  • Trigger/bootstrap or trigger changes remain a separate reviewed operator operation. Routine GHA releases never call workers triggers deploy.
  • GHA credentials are limited to Cloudflare account/token on the upload/promotion steps in the protected cloudflare-queue-transport-alert environment. No PR event or untrusted-ref secret path is added.

Verification

  • node --test pkgs/queue-transport-alert/worker/test/*.test.mjs: 40/40 passed.
  • node --check pkgs/queue-transport-alert/worker/deploy.mjs: passed.
  • git diff --check: passed.
  • PyYAML typed structural workflow checks: passed (manual-only trigger, read permissions, trusted main/repo gate, protected environment, provenance receipt validation, exact-source build, code-only secret scope, upload/promotion separation, no trigger mutation).
  • actionlint and Nix are unavailable in the execution environment; no live deployment was run.

Cutover prerequisites

Configure the cloudflare-queue-transport-alert GitHub environment with required reviewers and secrets CLOUDFLARE_ACCOUNT_ID and CLOUDFLARE_API_TOKEN only. Ensure the token has only required Worker version/deployment permissions. Confirm the existing serving version is healthy before upload; promotion will fail closed if the baseline version changes. Bootstrap and cron/trigger changes remain separately reviewed and are not performed by this workflow.

@coderabbitai

coderabbitai Bot commented Nov 22, 2026 •

Copy link
Copy Markdown

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 39 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: 04e9bf57-33bb-44f5-9336-cb37f88f4de3
Commits

Reviewing files that changed from the base of the PR and between 5133832 and c2e6423.

Files selected for processing: 6

  • .github/workflows/queue-transport-alert-deploy.yml
  • pkgs/queue-transport-alert/worker/README.md
  • pkgs/queue-transport-alert/worker/deploy-lib.mjs
  • pkgs/queue-transport-alert/worker/deploy.mjs
  • pkgs/queue-transport-alert/worker/deploy.sh
  • pkgs/queue-transport-alert/worker/test/deploy-lib.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

@dezren39
dezren39 marked this pull request as ready for review November 23, 2026 07:15
@dezren39
dezren39 merged commit b1bf2ce into main Nov 23, 2026
1 check passed
@dezren39
dezren39 deleted the codex/qta-gha-cf-versions branch November 23, 2026 07:15
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T07:17:00.884900Z c2e6423 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

audit:no-issue No spawning issue; judged on stated intent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant