Adding GitHub account to Xcode Accounts

I am attempting to add my GitHub account to Xcode. However, when I go to add my account, I get the error "Your account or token is incorrect." I've changed my GitHub password multiple times and it no matter what, I still get this error. Is there anything else I can do to get this up and running? Thank you!
Have you generated your GitHub token successfully on the GitHub site?
(GitHub token is not a password. Changing your GitHub password would not help.)

As noted in a previous answer by @OOPer, you probably want not to change your password, but instead generate a "personal access token." I don't know about previous versions, but in Xcode 13.3.1, the prompts indicate that reasonably well. One of the prompts links to GitHub's instructions on creating a personal access token (https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token).

As of July 2021, personal access tokens can now expire. (https://github.blog/changelog/2021-07-26-expiration-options-for-personal-access-tokens/) You can still set your token not to expire, but they "strongly recommend" against that. You can set the expiration up to 1 year (via "custom" date).

When your token expires, GitHub will email you with a link to GitHub's site to regenerate the token. You can also do that from GitHub's site by going to the "Personal Access Token" section -> click on the token name -> "Regenerate token."

Adding GitHub account to Xcode Accounts
 
 
Q