Closed Thakurvaibhav closed 1 year ago
I fixed it by removing the webhook from the repo
Glad you found a fix!
For anyone else who encounters this issue, here's some background. There are two IDs involved when using a GitHub App: the integration or app ID, which identifies your application and is what you configure on the server, and the installation ID, which represents an installation of the application on a particular user or organization. The installation ID being zero is what's causing this error.
I think this means that the application is not installed on your repository, which can happen if you manually added the webhook. If that's what you did, you should remove the hook and follow these steps to install the application on your repository. Installing an application automatically configures the webhook in addition to creating the necessary permissions and the installation ID. Unfortunately, GitHub doesn't show these automatic app hooks on the normal webhooks page, so it can be a bit confusing.
Once installed, the installation ID is sent as part of the webhook payload, so you shouldn't have to configure anything else in the server.
Hi,
I have installed the app on GitHub and deployed it on a Kubernetes cluster. The container spec looks something like this:
Whenever a GitHub webhook gets delivered to the container, I see the following error:
The logs suggest that the installation id is set as 0 but I have explicitly configured the env var
GITHUB_APP_INTEGRATION_ID
to a33xxxx
value Can someone please help with what could be wrong here?