Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Prompt for GitHub token with hidden input in gut init#230

Open
albbas wants to merge 2 commits into
maindivvun/gut:mainfrom
feat/init-hidden-token-inputdivvun/gut:feat/init-hidden-token-inputCopy head branch name to clipboard
Open

Prompt for GitHub token with hidden input in gut init#230
albbas wants to merge 2 commits into
maindivvun/gut:mainfrom
feat/init-hidden-token-inputdivvun/gut:feat/init-hidden-token-inputCopy head branch name to clipboard

Conversation

@albbas

@albbas albbas commented Apr 21, 2026

Copy link
Copy Markdown
Member

Summary

  • remove --token CLI argument from gut init
  • prompt for GitHub token interactively using hidden input (dialoguer::Password)
  • keep token validation flow unchanged after input

Why

Passing secrets on the command line can leak into shell history or process listings. Hidden prompt input is safer and matches sudo/mysql -p style workflows.

Notes

  • This PR is intentionally separate from keyring storage changes.
  • Existing behavior for invalid token errors is unchanged.

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.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.