Omarchy

Omarchy’s Setup > Git Will Sign You In to GitHub With a Prefilled Token Page

Leave a comment

Signing in to GitHub from Omarchy is getting faster. DHH merged PR #20768 on November 29, and it’s in the next version. Setup > Git used to run a plain gh auth login and ask about host, protocol and sign-in method. Now:

  • Say yes to “Sign in to GitHub?” and Omarchy installs the GitHub CLI and opens GitHub’s new-token page already filled in: the token is named after your hostname, with repo, workflow, write:packages and read:org scopes checked.
  • You generate it in the browser and paste it at a Token> prompt. It goes to gh auth login --with-token over https, followed by gh auth setup-git. An empty paste or Esc skips it.
  • Over SSH, or if the browser doesn’t open, the URL is printed in the terminal.

According to the PR, it was tested for real on a signed-out machine, including a working git push afterward. The SSH fallback was only tested with stubs.

Why I’m saying Needs Garlic!

The link also tries to default the token to no expiration with a default_expires_at=none parameter. The PR admits that’s from a community write-up, not GitHub’s docs. GitHub itself “highly recommend[s] adding an expiration,” and a classic token “can access every repository that you can access.” A never-expiring token with repo and workflow scopes on every laptop is just what infostealers look for. Before you click Generate, set an expiration. I wrote a how-to on doing this with an expiring token in this batch.

God Bless, and Needs Garlic!

References & Further Reading

Subscribe (RSS) Follow Omarchy via RSS

Leave a note

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.