"To create a new repository using the GitHub API, your personal access token needs to have the repo scope or permission. This permission grants full control of private and public repositories, including the ability to create new repositories." You probably give the "repo" scope but it was phrased as just giving access to one repo.