ci(#288): wire the auth-config drift gate into CI β closes #288#350
Merged
Conversation
β¦ist) #288 item 4: fail CI if prod's Supabase auth config drifts from the checked-in scripts/supabase/auth-config.json (the #287 class β site_url/uri_allow_list drift no test caught). Runs 'pnpm supabase:auth-config:check' (read-only dry-run, never PATCHes) on push to main, PRs touching the config, daily, and on demand. Uses the SUPABASE_ACCESS_TOKEN + SUPABASE_PROJECT_REF repo secrets that already exist β no owner action needed after all. Verified locally: exit 0, no drift. Closes #288. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Final #288 item (item 4): fail CI when prod's Supabase auth config drifts from the checked-in
scripts/supabase/auth-config.jsonβ the #287 class (site_url/uri_allow_list drift no test caught).Runs
pnpm supabase:auth-config:check(read-only dry-run of the Management API, never PATCHes) on push to main, PRs touching the config, daily, and on demand. Uses theSUPABASE_ACCESS_TOKEN+SUPABASE_PROJECT_REFrepo secrets that already existed β no owner action needed after all.This PR touches the workflow, so its own
pull_requestrun exercises the drift job with the real secrets β validates the token before merge. Verified locally: exit 0, no drift.Closes #288 β all four items now done (config-validity detector + unit test #346, real-form signup E2E with Mailpit #347, post-deploy @smoke suite #349, this drift gate).
π€ Generated with Claude Code