Skip to content

Add basectl GitHub auth status and refresh workflow#1689

Merged
codeforester merged 1 commit into
mainfrom
enhancement/1688-20260719-gh-auth-refresh
Jul 19, 2026
Merged

Add basectl GitHub auth status and refresh workflow#1689
codeforester merged 1 commit into
mainfrom
enhancement/1688-20260719-gh-auth-refresh

Conversation

@codeforester

Copy link
Copy Markdown
Collaborator

Summary

  • add basectl gh auth status for safe credential diagnostics
  • add basectl gh auth refresh with repeatable scope selection and clipboard support
  • detect GH_TOKEN/GITHUB_TOKEN precedence without reading or persisting token values
  • distinguish network failures from unavailable login and add Project-scope refresh guidance
  • update command reference, workflow docs, and Bash/Zsh completion coverage

Behavior

Stored credentials can be refreshed explicitly with basectl gh auth refresh --scope project. Environment-provided tokens remain outside Base ownership; when present, Base explains that refreshing stored credentials will not change the active token. Ordinary GitHub commands never launch an implicit OAuth flow.

Validation

  • full Python suite: 1,018 passed, 1 skipped
  • focused auth and completion Bats tests passing
  • zsh -n completion validation passing
  • ShellCheck warning-level validation passing
  • git diff --check passing
  • authenticated CLI smoke test for basectl gh auth status passing

Closes #1688

@codeforester
codeforester marked this pull request as ready for review July 19, 2026 21:01
@codeforester
codeforester requested a review from a team as a code owner July 19, 2026 21:01
@codeforester
codeforester merged commit 14da8ac into main Jul 19, 2026
28 checks passed
@codeforester
codeforester deleted the enhancement/1688-20260719-gh-auth-refresh branch July 19, 2026 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add scope-aware GitHub auth status and refresh to basectl gh

1 participant