GitHub Sync fails with permission errors

Continuing the discussion from GitHub Sync fails with "Repository could not be found or you lack permissions" despite correct configuration:

A post was merged into an existing topic: GitHub Sync fails with “Repository could not be found or you lack permissions” despite correct configuration