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

ingitdb / dalgo2ingitdb4github / 28577678526
84%

Build:
DEFAULT BRANCH: main
Ran 02 Jul 2026 08:52AM UTC
Jobs 1
Files 9
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

02 Jul 2026 08:51AM UTC coverage: 99.892% (+0.003%) from 99.889%
28577678526

push

github

web-flow
feat: add TokenProvider seam for per-request GitHub tokens (#1)

Replace construction-time github.WithAuthToken(cfg.Token) with a
per-request token resolution so callers can inject rotating credentials
(e.g. short-lived GitHub App installation tokens minted on demand by the
sneat-go backend) without rebuilding the adapter.

- Add TokenProvider interface { Token(ctx) (string, error) },
  TokenProviderFunc adapter and StaticTokenProvider(token).
- Add Config.TokenProvider field; an explicit provider wins over
  Config.Token, and a bare non-empty Config.Token is auto-wrapped in
  StaticTokenProvider, so existing callers keep working unchanged.
- Inject the token via a tokenProviderTransport RoundTripper that asks
  the provider on every request; provider errors abort the request and
  surface as regular operation errors. Caller-supplied http.Clients are
  copied, never mutated.
- Deduplicate the identical go-github client construction in
  NewGitHubFileReader and NewTreeWriter into newGitHubAPIClient.
- go.sum: add missing entries for dalgo v0.62.2 and golang.org/x/sys.

Design: sneat-co/backstage docs/roadmaps/ovdb-access-tokens-grants.md
(Decision 3.4, sequencing item 3).


Claude-Session: https://claude.ai/code/session_01FV3pbooAc9UPpNdiaJuKve

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>

59 of 59 new or added lines in 4 files covered. (100.0%)

925 of 926 relevant lines covered (99.89%)

1.18 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28577678526.1 02 Jul 2026 08:52AM UTC 9
99.89
GitHub Action Run
Source Files on build 28577678526
  • Tree
  • List 9
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 1fdc0e5e on github
  • Prev Build on main (#27584289081)
  • Next Build on main (#28701443176)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc