Skip to content

ci(release): backport Docker workflow and PostHog endpoint cleanup to v2.x - #7701

Merged
kanadgupta merged 3 commits into
v2.xfrom
backport/7699-prune-unused-secrets
Nov 19, 2026
Merged

kanadgupta merged 3 commits into
v2.xfrom
backport/7699-prune-unused-secrets

Conversation

@kanadgupta

@kanadgupta kanadgupta commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

Summary

Backports #7699 to v2.x, with one difference.

  • Deletes cli-go-publish-migra.yml and cli-go-pg-prove.yml, the v2.x names for the Docker Hub publish workflows removed on develop. This is the same trade-off as on develop: the images they last pushed on 2024-01-02 (supabase/migra:3.0.1663481299 and supabase/pg_prove:3.36) stay published, but the repo can no longer rebuild them.
  • Reads POSTHOG_ENDPOINT from a repository variable instead of a secret. POSTHOG_API_KEY stays a secret.
  • Difference: SENTRY_DSN stays a secret here. The v2 Go binary gets it at build time and uses it to send an error report to Sentry when a user passes --create-ticket.

Linked issue

Part of CLI-3161

🤖 Generated with Claude Code

…ndpoint to a variable

Remove the never-run migra and pg_prove Docker Hub publish workflows and
read the PostHog endpoint from a repository variable. The Sentry DSN
stays a secret because the v2 Go binary still reports to Sentry.

(cherry picked from commit 8cbcd41)

Generated with AI

Co-Authored-By: Claude <noreply@anthropic.com>
@kanadgupta
kanadgupta marked this pull request as ready for review November 19, 2026 00:35
@kanadgupta
kanadgupta requested review from a team and supabase-oss as code owners November 19, 2026 00:35

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤖 AI Review

Confirmed one release-configuration issue: if POSTHOG_ENDPOINT is still configured only as a secret, the next release will build successfully but silently lose its configured telemetry endpoint. The checkout cannot establish whether the replacement Actions variable has already been provisioned. No additional findings were verified. No CLI reference prose changed, and the prose guidance snapshot was unavailable.

Findings

Severity Location Category Sources Claim
🟠 MAJOR .github/workflows/build-cli-artifacts.yml:55 release-configuration codex Release builds silently drop the configured PostHog endpoint when POSTHOG_ENDPOINT exists only as an Actions secret. The release still ships with the API key, so telemetry can go to the default host instead of the intended endpoint.

Stats

Claude findings: 0 · Codex findings: 1 · Confirmed: 1 · Refuted: 0 · Uncertain: 0


Models: claude-opus-5-5 + gpt-6.2-sol · Trigger: auto · Workflow run

This review runs once per PR. A maintainer can request another with a /ai-review comment.

kanadgupta and others added 2 commits November 18, 2026 17:28
…ble is unset

Generated with AI

Co-Authored-By: Claude <noreply@anthropic.com>
… exists

Generated with AI

Co-Authored-By: Claude <noreply@anthropic.com>
@kanadgupta
kanadgupta merged commit ac27f9c into v2.x Nov 19, 2026
51 of 52 checks passed
@kanadgupta
kanadgupta deleted the backport/7699-prune-unused-secrets branch November 19, 2026 19:09
TFSebben pushed a commit to TFSebben/supabase_cli that referenced this pull request Nov 19, 2026
## Summary

Reduces the Actions secrets these workflows need.

- Deletes `publish-migra.yml` and `publish-pg-prove.yml`, leaving the
`DOCKER_USERNAME` and `DOCKER_PASSWORD` secrets unused on this branch.
This is a trade-off. The workflows last pushed
`supabase/migra:3.0.1663481299` and `supabase/pg_prove:3.36` to Docker
Hub on 2024-01-02, and their run history has since expired. After this
change the repo can no longer rebuild either image. The mirror workflow
still copies the existing tags to `public.ecr.aws`, which `supabase test
db` pulls. Neither image has changed in about two years, so we accept
that. The Dependabot config comment now says those two images stay at
their current pins.
- Reads `POSTHOG_ENDPOINT` from a repository variable instead of a
secret. The build bakes the endpoint into the published CLI, so it isn't
sensitive. `POSTHOG_API_KEY` stays a secret.
- Stops passing `SENTRY_DSN` to the build. Nothing has read it since the
Go binary was removed.

## Backport

supabase#7701 brings the same cleanup to
`v2.x`, with one difference: `SENTRY_DSN` stays a secret there. The v2
Go binary uses it to send an error report to Sentry when a user passes
`--create-ticket`.

## Linked issue

Part of CLI-3161

🤖 Generated with [Claude Code](https://claude.com/claude-code)

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants