• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / cli / 38543522133
67%
develop: 46%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/develop/pr-7380-74d4774766936b6e6141a58d061c3396a01c85c9
DEFAULT BRANCH: develop
Ran 14 Oct 2026 09:37AM UTC
Jobs 1
Files 79
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

14 Oct 2026 09:35AM UTC coverage: 66.737%. Remained the same
38543522133

push

github

web-flow
chore(cli): map db lint, push, reset and related command permissions (#7135)

Maps `db start`, `db test`, `db lint`, `db advisors`, `db reset`, `db
push` and `seed buckets` to the Management API operations they can call,
so scoped PATs can be granted per command. Drift tests keep each
declaration in step with what the command does.

**Shared model change.** `withCondition` now accepts a database-target
condition as well as a flag condition, so a command can gate a block on
the target it selects (`--local`, `--db-url`, linked). `FlagCondition`
is no longer exported.

**Blocks used.** `dbConfig` (lint, advisors, reset, push, `db test`),
`linkedProjectCache` (all but `db start` and `db test`),
`storageCredentials` (`seed buckets`). `db advisors` adds its own
security and performance entries, keyed on `--type`; because `--type` is
optional, each operation has an entry for the listed values and one for
the flag being absent.

**Defaults.** `db lint`, `db advisors`, `db reset`, `db test` and `seed
buckets` default to the local target; `db push` defaults to linked. Each
handler reads its target from the command line, not from the parsed flag
values.

**Tests.** Lint, advisors, reset, push and `db test` run the real
database-config resolver and the real linked-project cache and check the
recorded requests; `--local` runs assert no Management API request.
`seed buckets` records the api-keys request (`reveal=true`) and the
cache fill. Also covered: `--password` skipping the login role, an
advisors 403 stopping before the performance call, and `--linked=false`
in lint and seed. The `node:net` mock the real-resolver tests need now
lives in one helper, `tests/helpers/refuse-invalid-db-hosts.ts`, and
replaces the copies in `db query` and the resolver tests.

**Not covered.**
- `--linked=false` on push, reset, advisors and `db test`.
- A default target declared linked when it is really local would not
fail a drift test: a local run records no requests.

Also correct... (continued)

4097 of 6139 relevant lines covered (66.74%)

7.37 hits per line

Jobs
ID Job ID Ran Files Coverage
1 38543522133.1 14 Oct 2026 09:37AM UTC 79
66.74
GitHub Action Run
Source Files on build 38543522133
  • Tree
  • List 79
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #38543522133
  • 87e47b5e on github
  • Prev Build on gh-readonly-queue/develop/pr-7138-9af6852163a091448c49580570a2c424f250b550 (#38543379704)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc