Issue
When webhooks are enabled for GitHub, the following error appears during connector setup:
Failed to connect to GitHub Webhooks: Lack of access / Endpoint not found: Not Found
Environment
Connector: GitHub
Answer
Solution 1
Verify that you are connecting with an active GitHub account with the following GitHub scopes:
repo
read:org
admin:org_hook
admin:repo_hook
Solution 2
Confirm that the Fivetran App is listed under authorized apps in the GitHub UI. Follow the steps below:
- Access your GitHub User Profile
- Click Settings
- Click Applications
- Click Authorized OAuth Apps
From here, you can see the permissions scopes for the application. They should appear as shown below:
Solution 3
Confirm that the credentials associated with your GitHub account have Admin permissions. The Admin permissions will pertain to both the repo(s) and the org.
Cause
Scopes let you specify exactly what type of access you need. Scopes limit access for OAuth tokens. They do not grant any additional permission beyond that which the user already has.
Per GitHub's documentation, only Admins have the ability to manage webhooks and deploy keys.