Skip to content

Conversation

@devgar
Copy link

@devgar devgar commented Feb 3, 2026

Improvements to authentication token retrieval:

  • Added a new utility function GetGHToken in util/github.go that first checks for the GITHUB_OAUTH_TOKEN environment variable, and if not found, attempts to retrieve the token using the GitHub CLI gh auth token. If both methods fail, it logs a clear error message and exits.
  • Updated the main application logic in brows.go to use the new util.GetGHToken function instead of directly reading the environment variable, improving robustness and user experience.

Documentation updates:

  • Updated the README.md to explain the new authentication method, clarifying that either the environment variable or the GitHub CLI can be used to provide the token.

fixes #1

@devgar devgar changed the title Get GH token using gh cli feat: possibility to take GitHub token form gh CLI Feb 3, 2026
@devgar devgar changed the title feat: possibility to take GitHub token form gh CLI feat: support gh CLI for authentication Feb 3, 2026
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.

Authentication detection using gh

1 participant