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

astronomer / astro-cli / 39052759557
45%

Build:
DEFAULT BRANCH: main
Ran 17 Oct 2026 05:14PM UTC
Jobs 1
Files 218
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

17 Oct 2026 05:12PM UTC coverage: 45.095% (+0.03%) from 45.065%
39052759557

push

github

web-flow
PINF-703 add token login support to autheticate with token passing (#2157)

* add token login support to autheticate with token passing

* fix pre-commit and linting

* Keep a working APC login when --token-login is refused, clean the token, and test the token path

From a code review of this PR:

- A token given with --token-login was saved to the context before
  Houston had seen it, so an expired or mistyped one failed the login
  and also replaced the working token, and every command after it
  failed. The Houston client reads the token from the context, so it
  is still saved before the first request (listing workspaces), but
  the previous token is put back if that request fails.
- The token is trimmed and a "Bearer " prefix dropped: the Houston
  client adds its own, and a token read from a file carries a newline.
  A token that is empty after that is an error rather than a fall back
  to the interactive login.
- The interactive flow no longer hands Login an empty token: with
  basic auth disabled, a username yielded "" and no error, and Login
  saved it over the login there was. That predates this PR.
- --token-login and --oauth are mutually exclusive: a token login asks
  for nothing, so --oauth was silently ignored. --token-login's help
  no longer says it is for Astro only.
- Tests: Login with a given token saves it cleaned, without fetching
  the auth config; a refused one leaves the previous token; a blank one
  is refused before anything is asked; resolveAuthToken refuses an
  empty interactive token; the cmd layer hands --token-login to the APC
  login, with a domain and without; --token-login with --oauth is
  refused.

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Co-authored-by: Greg Neiheisel <greg@astronomer.io>
Co-authored-by: Claude <noreply@anthropic.com>

37 of 41 new or added lines in 2 files covered. (90.24%)

27234 of 60393 relevant lines covered (45.09%)

9.83 hits per line

Uncovered Changes

Lines Coverage ∆ File
4
87.5
1.99% apc/auth/auth.go
Jobs
ID Job ID Ran Files Coverage
1 39052759557.1 17 Oct 2026 05:14PM UTC 218
45.09
GitHub Action Run
Source Files on build 39052759557
  • Tree
  • List 218
  • Changed 3
  • Source Changed 2
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39052759557
  • abc97cd3 on github
  • Prev Build on main (#39048461566)
  • Next Build on main (#39057529384)
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