Skip to content

Commit 40711af

Browse files
kanadguptaclaude
andauthored
ci: prune Docker publish workflows and telemetry secrets (supabase#7699)
## 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>
1 parent 7a8313d commit 40711af

6 files changed

Lines changed: 3 additions & 204 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ updates:
6666
# These lines are generated from packages/stack/src/Artifacts.ts (the single version table
6767
# for slim-capable services); updates to them arrive through slim-release-published.yml, not
6868
# Dependabot. Kong and pg14 (supabase/postgres) have no slim build either, but are bumped by
69-
# hand, not by Dependabot. Dependabot keeps bumping only the images that remain genuinely
70-
# upstream-only: migra, pg_prove, pgadmin-schema-diff.
69+
# hand, not by Dependabot. Dependabot still watches migra, pg_prove, and pgadmin-schema-diff,
70+
# but nothing publishes new migra or pg_prove tags, so those two stay at their current pins.
7171
ignore:
7272
- dependency-name: "library/kong"
7373
- dependency-name: "axllent/mailpit"

‎.github/workflows/build-cli-artifacts.yml‎

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,8 @@ on:
3333
type: number
3434
default: 4
3535
secrets:
36-
SENTRY_DSN:
37-
required: false
3836
POSTHOG_API_KEY:
3937
required: false
40-
POSTHOG_ENDPOINT:
41-
required: false
4238
DF_FIREWALL_TOKEN:
4339
required: false
4440

@@ -52,9 +48,8 @@ jobs:
5248
timeout-minutes: ${{ inputs.timeout_minutes }}
5349
env:
5450
VERSION: ${{ inputs.version }}
55-
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
5651
POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}
57-
POSTHOG_ENDPOINT: ${{ secrets.POSTHOG_ENDPOINT }}
52+
POSTHOG_ENDPOINT: ${{ vars.POSTHOG_ENDPOINT }}
5853
# Fail the build if the macOS signing tool is missing — release artifacts
5954
# must be signed (CLI-1621). Local builds without rcodesign degrade to a
6055
# warning instead.

‎.github/workflows/publish-migra.yml‎

Lines changed: 0 additions & 93 deletions
This file was deleted.

‎.github/workflows/publish-pg-prove.yml‎

Lines changed: 0 additions & 93 deletions
This file was deleted.

‎.github/workflows/release-shared.yml‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,8 @@ on:
3939
type: string
4040
default: supabase
4141
secrets:
42-
SENTRY_DSN:
43-
required: false
4442
POSTHOG_API_KEY:
4543
required: false
46-
POSTHOG_ENDPOINT:
47-
required: false
4844
GH_APP_PRIVATE_KEY:
4945
required: false
5046
ANTHROPIC_API_KEY:
@@ -64,9 +60,7 @@ jobs:
6460
with:
6561
version: ${{ inputs.version }}
6662
secrets:
67-
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
6863
POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}
69-
POSTHOG_ENDPOINT: ${{ secrets.POSTHOG_ENDPOINT }}
7064
DF_FIREWALL_TOKEN: ${{ secrets.DF_FIREWALL_TOKEN }}
7165

7266
build-github:
@@ -79,9 +73,7 @@ jobs:
7973
timeout_minutes: 45
8074
build_timeout_minutes: 20
8175
secrets:
82-
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
8376
POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}
84-
POSTHOG_ENDPOINT: ${{ secrets.POSTHOG_ENDPOINT }}
8577
DF_FIREWALL_TOKEN: ${{ secrets.DF_FIREWALL_TOKEN }}
8678

8779
smoke-test:

‎.github/workflows/release.yml‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,9 +356,7 @@ jobs:
356356
dry_run: ${{ needs.plan.outputs.dry_run == 'true' }}
357357
channel: ${{ needs.plan.outputs.channel }}
358358
secrets:
359-
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
360359
POSTHOG_API_KEY: ${{ secrets.POSTHOG_API_KEY }}
361-
POSTHOG_ENDPOINT: ${{ secrets.POSTHOG_ENDPOINT }}
362360
GH_APP_PRIVATE_KEY: ${{ secrets.GH_APP_PRIVATE_KEY }}
363361
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
364362
DF_FIREWALL_TOKEN: ${{ secrets.DF_FIREWALL_TOKEN }}

0 commit comments

Comments
 (0)