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

supabase / cli / 38416262429
67%
develop: 46%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/develop/pr-7380-74d4774766936b6e6141a58d061c3396a01c85c9
DEFAULT BRANCH: develop
Ran 13 Oct 2026 02:47PM 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

13 Oct 2026 02:46PM UTC coverage: 66.737%. Remained the same
38416262429

push

github

web-flow
chore(cli): map secrets list, snippets list and db query permissions (#7106)

## Summary

Scoped personal access tokens let a user pick exactly which permissions
a token gets, so the CLI needs to say which permissions each command
requires. This maps the first commands onto the permission model; see
[CLI-2474](https://linear.app/supabase/issue/CLI-2474/proposal-derive-and-document-the-management-api-scopes-each-cli).

## What's in this PR

- Permission declarations for `secrets list`, `snippets list` and `db
query`, built from the shared building blocks (project ref picker,
linked-project cache, DB config). `db query` selects its Management API
call by database target, defaulting to local. These three work as the
worked example for mapping the remaining commands.
- Each command's integration test checks the requests it records against
its declaration, so the mapping can't drift from the code. The tests
also run the commands through the real linked-project cache layer, and
`secrets list` through the project picker, so a block dropped from a
declaration fails a test.
- `assertBlockDrift`, a drift check for building blocks that takes its
label from the block instead of a made-up command name. The existing
block tests use it, and `permission-drift.ts` has callers now, so its
`knip` entry is gone.

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

---------

Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>

4097 of 6139 relevant lines covered (66.74%)

7.37 hits per line

Jobs
ID Job ID Ran Files Coverage
1 38416262429.1 13 Oct 2026 02:47PM UTC 79
66.74
GitHub Action Run
Source Files on build 38416262429
  • 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 #38416262429
  • 6baa653a on github
  • Prev Build on gh-readonly-queue/develop/pr-7115-e58c2837a215f13c9ba36529d551ca8f2d666f91 (#38414321494)
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