-
Notifications
You must be signed in to change notification settings - Fork 480
chore: production deploy #5519
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
chore: production deploy #5519
Changes from all commits
Commits
Show all changes
49 commits
Select commit
Hold shift + click to select a range
3c78680
fix(deps): bump github.com/posthog/posthog-go from 1.13.0 to 1.13.1 i…
dependabot[bot] efa6df7
feat(cli): port services (#5468)
7ttp 94b0db1
feat(cli): port bootstrap command to native TypeScript (#5470)
Coly010 618912c
fix(cli): tolerate missing SSO SAML IDs (#5485)
jgoux 17f03f3
ci(deps): auto-merge all Dependabot updates (#5486)
jgoux b2d5dbd
test(stack): stabilize e2e warmup tests (#5487)
jgoux 0c6c4c9
test(cli): remove Docker manifest alignment check (#5488)
jgoux d7956aa
fix(docker): bump the docker-minor group in /apps/cli-go/pkg/config/t…
dependabot[bot] 0d046f3
fix(deps-dev): bump the npm-major group across 1 directory with 3 upd…
dependabot[bot] dd8e1b7
chore(cli): align scoop manifest with Main bucket conventions (#5490)
avallete 7c490a4
fix(docker): bump supabase/storage-api from v1.60.4 to v1.60.8 in /ap…
dependabot[bot] 56d617c
fix(deps): bump github.com/go-playground/validator/v10 from 10.30.2 t…
dependabot[bot] cd0ca38
chore(ci): bump aws-actions/configure-aws-credentials from 6.1.3 to 6…
dependabot[bot] 1db29f3
chore: sync API types from infrastructure (#5504)
supabase-cli-releaser[bot] 142e6a1
feat(cli): add --git-branch flag to branches create command (#5250)
avallete 9fdbf04
fix(cli): warn when vector buckets are unavailable (#5508)
jgoux dc2ba5d
feat(cli): port gen signing-key (#5501)
7ttp 8a05105
feat(cli): port config push (#5489)
Coly010 ec23369
fix(deps): bump the npm-major group across 1 directory with 9 updates…
dependabot[bot] 48218f3
fix(cli): skip pg_dump in db pull when using pg-delta diff engine (#5…
avallete ff3482b
chore(ci): bump the actions-major group with 2 updates (#5516)
dependabot[bot] 9eebd54
chore(cli): track output_format and fix is_agent CI parity (#5513)
pamelachia 4260821
fix(deps): bump the npm-major group with 16 updates (#5518)
dependabot[bot] 27b6af1
feat(cli): port gen types (#5514)
7ttp 0e06255
feat(cli): set up platform baseline before declarative apply (#5515)
avallete f54aba0
fix(docker): bump the docker-minor group in /apps/cli-go/pkg/config/t…
dependabot[bot] 82e6d06
fix(cli): provision platform baseline in declarative baseline catalog…
avallete 879d44e
chore(ci): add API package sync workflow (#5523)
jgoux 3334354
fix(deps): bump the npm-major group with 4 updates (#5529)
dependabot[bot] fb145af
fix(docker): bump the docker-minor group in /apps/cli-go/pkg/config/t…
dependabot[bot] 178b882
fix(deps): bump github.com/posthog/posthog-go from 1.13.1 to 1.13.2 i…
dependabot[bot] 2bb1173
fix(docker): bump supabase/postgres from 17.6.1.132 to 17.6.1.134 in …
dependabot[bot] 8c577d8
chore(ci): support merge queues (#5526)
jgoux 2f86caa
chore(api): sync Management API OpenAPI spec (#5525)
supabase-cli-releaser[bot] 3b517e7
feat(cli): default output to JSON for coding agents (#5532)
pamelachia 6a82246
fix(cli): retry rate-limited function deployments (#5534)
jgoux ceea5cb
chore(ci): skip post-merge test run (#5533)
jgoux 5b12151
feat(api): flip auto_expose_new_tables default to false (#5524)
avallete f9d07c7
chore(ci): bump github/codeql-action from 4.36.1 to 4.36.2 in the act…
dependabot[bot] 6b17630
fix(deps): bump github.com/posthog/posthog-go from 1.13.2 to 1.14.0 i…
dependabot[bot] 9e6d13e
fix(deps): bump the npm-major group with 8 updates (#5539)
dependabot[bot] 3b4fc98
ci(release): harden release publishing workflow (#5536)
jgoux c94310f
ci(cli): use buildx for image mirroring (#5542)
jgoux 8680611
fix(cli): skip unavailable local vector storage (#5535)
jgoux f3ff9fd
fix(docker): bump the docker-minor group in /apps/cli-go/pkg/config/t…
dependabot[bot] 09a5a92
fix(api): allow missing custom hostname validation records (#5543)
jgoux 2064429
feat(cli): port functions delete & download (#5527)
7ttp 9f4047d
chore(ci): ignore Docker Compose Go module updates (#5544)
jgoux bd39bcf
fix(cli): preserve flag/env channel when delegating to the Go proxy (…
Coly010 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,118 @@ | ||
| name: API Package Sync | ||
|
|
||
| on: | ||
| schedule: | ||
| - cron: "17 * * * *" | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| detect: | ||
| name: Detect OpenAPI changes | ||
| runs-on: blacksmith-8vcpu-ubuntu-2404 | ||
| outputs: | ||
| has_changes: ${{ steps.compare.outputs.has_changes }} | ||
| steps: | ||
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Compare upstream OpenAPI spec | ||
| id: compare | ||
| shell: bash | ||
| run: | | ||
| set -euo pipefail | ||
|
|
||
| remote_spec="$RUNNER_TEMP/openapi.remote.json" | ||
| remote_normalized="$RUNNER_TEMP/openapi.remote.normalized.json" | ||
| tracked_normalized="$RUNNER_TEMP/openapi.tracked.normalized.json" | ||
| normalize_filter="$RUNNER_TEMP/normalize-openapi.jq" | ||
|
|
||
| curl -fsS https://api.supabase.com/api/v1-json -o "$remote_spec" | ||
|
|
||
| cat > "$normalize_filter" <<'JQ' | ||
| def pointer_path($p): $p | split("/")[1:] | map(gsub("~1"; "/") | gsub("~0"; "~")); | ||
| reduce ($overrides[0] // [])[] as $op (.; | ||
| if $op.op == "test" then | ||
| if getpath(pointer_path($op.path)) == $op.value then | ||
| . | ||
| else | ||
| error("OpenAPI override test failed at \($op.path)") | ||
| end | ||
| elif $op.op == "replace" then | ||
| setpath(pointer_path($op.path); $op.value) | ||
| else | ||
| error("Unsupported OpenAPI override op \($op.op)") | ||
| end | ||
| ) | ||
| JQ | ||
|
|
||
| jq -S --slurpfile overrides packages/api/scripts/openapi-overrides.json \ | ||
| -f "$normalize_filter" "$remote_spec" > "$remote_normalized" | ||
| jq -S . packages/api/src/generated/openapi.json > "$tracked_normalized" | ||
|
|
||
| if cmp -s "$remote_normalized" "$tracked_normalized"; then | ||
| echo "No upstream OpenAPI changes detected." | ||
| echo "has_changes=false" >> "$GITHUB_OUTPUT" | ||
| else | ||
| echo "Upstream OpenAPI changes detected." | ||
| echo "has_changes=true" >> "$GITHUB_OUTPUT" | ||
| diff -u "$tracked_normalized" "$remote_normalized" | sed -n '1,160p' || true | ||
| fi | ||
|
|
||
| sync: | ||
| name: Sync API package | ||
| needs: detect | ||
| if: needs.detect.outputs.has_changes == 'true' | ||
| runs-on: blacksmith-8vcpu-ubuntu-2404 | ||
| steps: | ||
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | ||
| with: | ||
| persist-credentials: false | ||
|
|
||
| - name: Setup | ||
| uses: ./.github/actions/setup | ||
|
|
||
| - name: Regenerate API package | ||
| run: pnpm generate | ||
| working-directory: packages/api | ||
|
|
||
| - name: Format API package | ||
| run: pnpm exec nx run @supabase/api:fmt:fix | ||
|
|
||
| - name: Check for generated changes | ||
| id: check | ||
| run: | | ||
| if git diff --ignore-space-at-eol --exit-code --quiet packages/api/src/generated; then | ||
| echo "No generated changes detected." | ||
| echo "has_changes=false" >> "$GITHUB_OUTPUT" | ||
| else | ||
| echo "Generated changes detected." | ||
| echo "has_changes=true" >> "$GITHUB_OUTPUT" | ||
| fi | ||
|
|
||
| - name: Generate token | ||
| if: steps.check.outputs.has_changes == 'true' | ||
| id: app-token | ||
| uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 | ||
| with: | ||
| client-id: ${{ vars.GH_APP_CLIENT_ID }} | ||
| private-key: ${{ secrets.GH_APP_PRIVATE_KEY }} | ||
| permission-pull-requests: write | ||
| permission-contents: write | ||
|
|
||
| - name: Create Pull Request | ||
| if: steps.check.outputs.has_changes == 'true' | ||
| uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1 | ||
| with: | ||
| token: ${{ steps.app-token.outputs.token }} | ||
| commit-message: "chore(api): sync Management API OpenAPI spec" | ||
| title: "chore(api): sync Management API OpenAPI spec" | ||
| body: | | ||
| This PR was automatically created to sync the generated `@supabase/api` package with the latest Management API OpenAPI document. | ||
|
|
||
| Changes were detected in the upstream OpenAPI document exposed by `https://api.supabase.com/api/v1-json`. | ||
| branch: sync/api-package | ||
| base: develop |
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
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
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
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
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
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
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
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
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Severity: MEDIUM
The
if:conditions that previously restricted auto-approval and auto-merge tosemver-patchand stablesemver-minorDependabot updates were removed from this step (and the token generation/approval steps above). All Dependabot PRs — including major version bumps — now auto-merge without human review, weakening supply chain defenses if a dependency is compromised at a major version.Helpful? Add 👍 / 👎
💡 Fix Suggestion
Suggestion: Restore the step-level
if:conditions that were previously present on the Generate token (line 24), Approve a PR (line 34), and Enable auto-merge (line 42) steps to restrict automated approval and merging to non-major updates only. Add the following condition to each of those three steps:For example, the "Enable auto-merge" step should become:
The same
if:condition must also be added to the Generate token step (line 24) and the Approve a PR step (line 34) — otherwise major-version PRs will still be auto-approved by the app token even if the merge step is gated. Restricting all three steps ensures that major version bumps require a human to manually review and approve before merging, restoring the supply-chain review barrier.