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

supabase / cli / 40858874818
47%
develop: 46%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/develop/pr-7380-74d4774766936b6e6141a58d061c3396a01c85c9
DEFAULT BRANCH: develop
Ran 29 Oct 2026 10:37AM UTC
Jobs 1
Files 119
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

29 Oct 2026 10:35AM UTC coverage: 46.568%. Remained the same
40858874818

push

github

web-flow
fix(cli): let `link` work without secret key access (CLI-2274, CLI-2699) (#7388)

## TL;DR

`supabase link` now works with a project scoped token that can't read
secret API keys, so CI can link and run `db push` with least privilege

## whats improved/fixed?

link always asked for the secret keys with `reveal=true`
so a token without API Key Secrets read got a 403 and link failed with
`Authorization failed for the access token and project ref pair`

those keys only feed the optional service version checks, so the whole
command was blocked for nothing

## how?

a 403 there now prints a warning naming the missing permission, 
skips those checks and still writes the link any other failure still
fails, and `link --help` now lists `api_gateway_keys_secret_read` as
optional

<details>
<summary>visual rep</summary>

```mermaid
flowchart TD
    link["supabase link"] --> project["GET /v1/projects/{ref}"]
    project --> keys["GET api-keys?reveal=true"]
    keys -- "200" --> probes["service version checks"]
    probes --> saved["link saved"]
    keys -- "403 before" --> failed["link fails<br/>db push --linked has no project"]
    keys -- "403 now" --> warn["warning names API Key Secrets read<br/>version checks skipped"]
    warn --> saved
    keys -- "401, 404, other" --> error["link fails as before"]
    saved --> push["db push --linked<br/>connects with the database password"]
```

</details>

## ref:

- closes: https://github.com/supabase/cli/issues/6392
- closes: https://github.com/supabase/cli/issues/7165

5591 of 12006 relevant lines covered (46.57%)

25.09 hits per line

Jobs
ID Job ID Ran Files Coverage
1 40858874818.1 29 Oct 2026 10:37AM UTC 119
46.57
GitHub Action Run
Source Files on build 40858874818
  • Tree
  • List 119
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40858874818
  • bff634ca on github
  • Prev Build on develop (#40798933112)
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