FormingConfigclaude-codecodexpublished fresh until

Supabase: serialize deploys with GitHub Actions

Summary As of October 2026, use one GitHub Actions release writer per Supabase project, disable competing production deployers, and check every served function commit; let active releases finish with cancel-in-progress=false

Not for Supabase CLI local databases for parallel agent worktrees; see supabase-local-stack-per-worktree

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The option

Option
AConfig · v1.0.0Supabase function release receipt check
How you use itA setting in your project
What it can dowrites files
What's inside
AConfig · v1.0.0Supabase function release receipt check
How you use it
A setting in your project
What it can do
writes files
What's inside

What this thread does

Use one GitHub Actions writer per Supabase production project, let active deployments finish, and verify every function's served commit before closing the release.

Do first: turn off Deploy to production in Project Settings > Integrations > GitHub Integration; drain active runs before Actions takes over (step 2).

Setup recipe

1. Start with Supabase's Actions example. Pin CLI 2.122.0 (October 2026 baseline); 3.3.0 is latest stable as of November 2026. Keep existing authentication and credential storage. 2. In Project Settings > Integrations > GitHub Integration, turn off Deploy to production. Review the migration and bucket release plan separately: the switch covers those too. Wait for active integration runs to finish. Disable other function deployment jobs for the project. See integration settings. 3. Set the release job's concurrency.group to supabase-prod-<project-ref> and concurrency.cancel-in-progress to false. Every workflow targeting this project must use the same group. Hold the lock through readback. Use the default single pending slot if intermediate commits may be skipped. 4. After acquiring the group, check that the selected commit is still the intended production-branch head; skip superseded commits. Check out that exact commit for the run, then use the documented supabase functions deploy --project-ref <project-ref> step. The head check is an authored safeguard; concurrency alone does not guarantee newest-commit-wins. 5. Embed a harmless release commit identifier in each function's own diagnostic response at build time. After deployment, invoke every expected function and compare its returned identifier with the release commit, including functions affected through shared imports. Fail on any mismatch. Probes cover sampled responses, not all regions or shared-dependency behavior. Record regions and test dependency behavior. Try a disposable project first. 6. Fill the receipt below from reviewed settings and observed responses. Run python3 scripts/ww-check-supabase-release.py release/supabase-release.json. Never mark an unobserved control as reviewed.

GitHub concurrency permits one active run and one pending run by default; a newer pending run replaces the previous pending run. Waiting order is not dispatch order. The group applies within one repository; it cannot lock dashboard changes, another repository or Supabase's integration. This handoff and readback procedure is an engineering recommendation, not a Supabase-confirmed fix.

Operating mode

ModeWins / losesPick this if
Supabase GitHub integrationConvenient automatic migrations, functions and bucket releases; the open report below describes overlapping function deployments.One supervised release at a time is practical, and you verify served code.
One Actions writerExplicit lock and readback; you maintain the workflow, credentials and recovery. This recipe implements no atomic cutover.Frequent merges need a controlled function release path.

Solo default: one manually supervised integration run at a time. Small-team default: one Actions writer with a project group. Enterprise default: one release owner across repositories or an external coordinator; a repository-local group cannot provide that global lock.

Costs and limits, checked 2026-10-28

Both modes retain Edge Function invocation billing: Free includes 500,000 invocations; Pro and Team include 2 million with $2 per million above quota; Enterprise is custom. Readback requests count as invocations. This is not total project pricing.

Actions also uses runners: standard hosted runners in public repositories are free; private-repository compute consumes included usage, then incurs charges. Self-hosted runners have infrastructure costs. See Actions billing. Neither mode provides an atomic multi-function release through this recipe.

Authored receipt package

WhatWorks declares v1.0.0 and CC0-1.0 for these two files; Claude Code/Codex installation instructions are supplied. Copy the blocks to their named paths, including final newlines. The reference hashes the compact, sorted JSON object mapping both paths to exact contents, encoded as UTF-8. The initial template intentionally fails until reviewed and filled. Passing checks receipt completeness and recorded commit agreement, not live truth.

scripts/ww-check-supabase-release.py

# WhatWorks; CC0-1.0 applies to this authored file only.
# Read a reviewed receipt, never credentials or live services.
import json
import re
import sys
from pathlib import Path

r = json.loads(Path(sys.argv[1]).read_text())
def need(ok, reason):
    if not ok:
        raise SystemExit(reason)

need(re.fullmatch(r"[a-z]{20}", r.get("project_ref", "")), "Record the project reference")
need(re.fullmatch(r"[0-9a-f]{40}", r.get("commit", "")), "Record a full commit SHA")
need(r.get("writer") == "github-actions", "Record the sole release writer")
for key in ("integration_off", "other_writers_off", "prior_runs_drained", "head_rechecked", "cancel_in_progress_false"):
    need(r.get(key) is True, "Missing reviewed control: " + key)
need(r.get("group") == "supabase-prod-" + r["project_ref"], "Use the project group")
e = r.get("expected_functions", [])
need(isinstance(e, list) and e and all(isinstance(x, str) and x for x in e), "List function slugs")
need(len(set(e)) == len(e), "Duplicate function slug")
o = r.get("observed_commits", {})
need(isinstance(o, dict) and set(o) == set(e), "Missing or extra function readback")
need(all(v == r["commit"] for v in o.values()), "Function readback disagrees with release commit")
print("Receipt complete; live state and attestations require human review")

release/supabase-release.json

{"project_ref":"REPLACE","commit":"REPLACE","writer":"github-actions","integration_off":false,"other_writers_off":false,"prior_runs_drained":false,"head_rechecked":false,"cancel_in_progress_false":false,"group":"REPLACE","expected_functions":[],"observed_commits":{}}

Public demand and evidence

luizfneves404, issue #52048, 2026-10-20: “both checks are green”. The author reports older function code after overlapping integration releases. October 21–24 discussion has contributor efekanbahceci's orchestration analysis. That engagement is not an independent successful trial. The issue remains open, checked 2026-11-15. Evidence: none found for independent reproduction of this complete Actions recipe.

Prompt for your agent

Inventory deployment writers. Propose one Actions writer, a shared project group, no in-progress cancellation, a branch-head check and per-function commit readback. Preserve the migration and bucket release plan. Install only the receipt files first; explain every attestation before filling it. Return a workflow diff for review.

Mistakes

Different groups for different workflows; automatic integration releases left enabled; cancelling halfway through uploads; assuming queue order follows commits; checking only one function; treating the receipt as a live audit.

Limits

The end-to-end handoff, overlapping deployments and commit probes have not been run. The checker validates recorded assertions, not actual settings, response authenticity or absence of competing writers. Treat updates as potentially mixed; the linked integration report describes per-function overwrites. No database migration ordering, rollback automation or cross-repository coordinator is implemented.

Started from a post by @luizfneves404, packaged by the editor. Original post

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

Subjects

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Supabase: serialize deploys with GitHub Actions
Summary: As of October 2026, use one GitHub Actions release writer per Supabase project, disable competing production deployers, and check every served function commit; let active releases finish with cancel-in-progress=false

## Options
- A · Supabase function release receipt check · early, no verdict yet · writes files
Copy for agent
get the whatworks thread supabase-github-actions-serialize-edge-function-deploys and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread supabase-github-actions-serialize-edge-function-deploys

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · Supabase function release receipt check

Authored CC0-1.0 receipt and read-only Python checker for reviewed controls, function inventory and served-commit agreement. Does not inspect live configuration or deploy anything. Requires Python 3.

Format
Config
Source
—
Pinned
v1.0.0 · sha256:a8b10
Content hash
a8b10ecbbb3084bc
Audit
scan passed
Can do
writes files
Works with
claude-code · codex
Check
Checks a filled receipt for missing controls, readbacks and commit disagreement; does not verify live truth.
Author
@WhatWorks
Kudos
0

This package has no public source link yet.

Are you @WhatWorks? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package supabase-release-receipt-check before installing
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks