Issue
When attempting to set up a new project in a newly created GitHub organization using GitHub OAuth/Classic integration, the project setup fails without displaying a specific error.
Root Cause
As of October 2023, GitHub now disables deploy keys by default for new organizations. CircleCI requires deploy keys to properly set up and access your projects.
Resolution
Enable Deploy Keys in GitHub Organization Settings
Log in to GitHub
Navigate to your organization
Click on Settings at the top of the organization page
In the left sidebar, click on Actions > General
Scroll down to find the Deploy keys section
Enable the option for Allow repositories in this organization to create deploy keys
Click Save
Retry Project Setup in CircleCI
After enabling deploy keys:
Return to CircleCI
Refresh the page
Attempt to set up your project again
Additional Information
This issue only affects new GitHub organizations with new projects
Existing organizations with previously set up CircleCI projects generally won't encounter this issue
GitHub made this change in October 2023 as part of their security enhancements
For more information on GitHub's change, see their changelog announcement