Skip to content

macOS: GitHub Desktop 3.7.0 cannot save sign-in credentials until reboot #23242

Backlog

Description

@Yu03-6

The problem

On November 26, 2026, GitHub Desktop 3.7.0 could no longer read the existing GitHub.com credentials. Browser authorization in Safari completed and returned to Desktop, but Desktop reported “Unable to save your GitHub credentials. Please try signing in again.” Settings → Accounts still showed the sign-in button.

Replacing the app with a fresh copy of the official Apple silicon build of 3.7.0 did not help. Restarting the Mac resolved the problem. The root cause is unknown.

Release version

3.7.0 (Apple silicon)

Operating system

macOS Tahoe 26.5.2 (Apple silicon)

Steps to reproduce the behavior

These steps reproduce the symptom in the affected session. I have not found a reliable way to recreate that system state after rebooting.

  1. Open GitHub Desktop → Settings → Accounts → Sign Into GitHub.com.
  2. Complete browser authorization in Safari and return to Desktop.
  3. Observe the credential-saving error. Accounts continues to show the sign-in button.

Expected: Desktop saves the credentials and displays the authenticated account.

Log files

Relevant GitHub Desktop log messages (OAuth URLs and full logs omitted):

Error getting token for 'GitHub - https://api.github.com'. Skipping.
Error: An unknown error occurred.
Unable to save GitHub credentials in secure storage.

Screenshots

No response

Additional context

Desktop 3.6.11 could authenticate and push from the same Mac the previous evening. The first logged startup of 3.7.0 showed the credential read error. The GitHub.com entry was still visible in Keychain Access, but the Lock command for the login keychain was disabled. No keychain entries were deleted or reset.

Activity

  1. added
    bug
    priority-3
    on Nov 26, 2026
  2. desktop-triage commented on Nov 26, 2026

    @desktop-triage

    Classification: Bug — requesting bug, confidence HIGH. Priority: priority-3, confidence MEDIUM (reproduced once, resolved by reboot, no workaround needed once rebooted, but points to a real keychain-access failure mode). This is not a duplicate of #22208, confidence HIGH — that issue is about the OAuth browser callback itself immediately failing ("unknown error" right after authorization, token never issued, every attempt), whereas this report shows the callback completing and the failure occurring later at the keychain-write step, self-resolving after a reboot.

    Initial hypothesis

    The logged messages ("Error getting token for 'GitHub - https://api.github.com'. Skipping.", "Unable to save GitHub credentials in secure storage.") map directly to the addAccount catch block in AccountsStore, which calls into keytar via TokenStore/secureStore and emits a generic "Unable to save GitHub credentials in secure storage" error unless the underlying error message matches the isKeyChainError check at lines 59-67 (which only matches a specific "user name or passphrase... not correct" string). The reporter's own observation that the login keychain's "Lock" menu item was disabled suggests the keychain daemon (securityd/SecurityAgent) was itself in a wedged or unresponsive state on that machine — a known macOS behavior after certain system events (e.g. sleep/wake issues, FileVault/session state changes) that can make keychain API calls fail silently or return an opaque error until the process restarts or the Mac reboots. Since a reboot (not just relaunching Desktop) was required, the root cause is more likely a transient macOS keychain-daemon/session issue than a GitHub Desktop code defect, though Desktop's generic error message and lack of keychain-state detection make it hard to diagnose. Confirming whether other apps using the keychain also failed during that window, and capturing log show keychain/securityd errors from that time, would help validate this.

    Generated by Issue Triage (skills-driven) for #23242 · auto · 39.4 AIC · ⊞ 4.7K · ◷

  3. sergiou87 commented on Nov 27, 2026

    @sergiou87
    Member

    Thanks for the detailed report!

    We checked the changes between 3.6.11 and 3.7.0 and nothing changed in how GitHub Desktop reads or writes macOS Keychain credentials. Because both reading your existing token and saving a new one failed, reinstalling 3.7.0 didn't help, the Lock option for the login keychain was disabled in Keychain Access, and rebooting resolved it without touching the keychain entry, this looks like a transient macOS Keychain / securityd state issue rather than a regression in 3.7.0.

    If this happens again, a few things you can try before a full reboot:

    • Check and unlock the login keychain from Terminal:
      security show-keychain-info ~/Library/Keychains/login.keychain-db
      security unlock-keychain ~/Library/Keychains/login.keychain-db
    • In Keychain Access, inspect the GitHub - https://api.github.com item under Access Control to confirm GitHub Desktop is still allowed to access it.
    • Logging out of your macOS user session and logging back in can also reset the keychain session without a full restart.

    If it does recur, it would be super helpful to know:

    1. Whether other apps that rely on Keychain (like git CLI or other dev tools) also fail to read/write credentials during that same session.
    2. What security find-generic-password -s "GitHub - https://api.github.com" outputs in Terminal (without -w, so it won't print your token) — our current keychain library collapses some macOS error messages into "An unknown error occurred.", so seeing the raw macOS error code would tell us a lot.

    Since a reboot cleared it up and it isn't reproducible right now, I'll go ahead and close this for now, but please feel free to comment if it comes back and we can reopen and dig in!

  4. added
    more-info-needed
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmore-info-neededpriority-3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions