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

astronomer / astro-cli / 39054407113
60%
main: 45%

Build:
Build:
LAST BUILD BRANCH: af-deployment-by-name
DEFAULT BRANCH: main
Ran 17 Oct 2026 05:39PM UTC
Jobs 1
Files 336
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:35PM UTC coverage: 60.029% (+0.02%) from 60.011%
39054407113

push

github

web-flow
Merge main into v2 (#2331)

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: pgvishnuram <81585115+pgvishnuram@users.noreply.github.com>
Co-authored-by: Claude <noreply@anthropic.com>

37 of 43 new or added lines in 2 files covered. (86.05%)

40349 of 67216 relevant lines covered (60.03%)

292.83 hits per line

Uncovered Changes

Lines Coverage ∆ File
6
83.13
2.33% internal/platform/apc/auth/auth.go
Jobs
ID Job ID Ran Files Coverage
1 39054407113.1 17 Oct 2026 05:39PM UTC 336
60.03
GitHub Action Run
Source Files on build 39054407113
  • Tree
  • List 336
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #39054407113
  • bbc2522a on github
  • Prev Build on v2 (#39053272898)
  • Next Build on v2 (#39054617810)
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