SPC can't load packages from git

A month ago I joined a team and cloned the project from git, and when building the project in Xcode 13 (which I had recently installed) I ran into build issues:

I reviewed my integration with git (ssh keys) and after I ran File>Packages>Reset Package Caches everything started working. Not sure whether the package cache reset fixed it, but all is good.

Until I just got my new 16" M1 MacBook pro. I did a time machine backup, restored to the new machine, and the same problem is back. Except that I can't get past the issue. The other Xcode source functions work (fetch, change branch, etc.) but no luck with authenticating to pull the packages. I don't consider myself a git guru - I prefer to use GitHub Desktop over the command line, but I use the command line when I need to.

In Xcode File>Preferences>Accounts the GitHub account is set up there. So what am I missing? Any help appreciated.

Additional detail - when I click "Authentication failed because credentials were missing" I get the credential dialog, which confirms that my credentials are good.

SPC can't load packages from git
 
 
Q