Assistance Needed with Configuring Webhooks in Gitea

Hello Gitea Community,

I’m currently working on a project where I’m integrating Gitea with a CI/CD pipeline, and I need some guidance on setting up and troubleshooting webhooks.

Here’s my current setup:

  • Gitea version: 1.20.0
  • CI/CD Tool: GitLab CI (but open to exploring other options if better suited for Gitea)
  • Hosting: Self-hosted instance on a Linux server

What I’ve Done So Far:

  1. Created a webhook in the repository settings and pointed it to my CI/CD server’s webhook endpoint.
  2. Configured the webhook to trigger on push events.
  3. Tested the webhook using the “Test Delivery” feature in Gitea’s UI.

The Problem:

While the test delivery works and returns a 200 response, real push events don’t seem to trigger the webhook. There’s no indication in the webhook logs that these events are being processed.

Things I’ve Tried:

  • Double-checked the payload URL and verified it’s reachable from the server.
  • Ensured that push events are selected in the webhook settings.
  • Checked server logs for errors but didn’t find anything specific to webhooks.
  • Restarted the Gitea instance to rule out any caching issues.

Questions:

  1. Are there any specific logs or debugging tools in Gitea that I can use to trace webhook activity?
  2. Could this be a permissions issue related to the repository or the webhook endpoint?
  3. Are there any known issues with webhooks in this version of Gitea, and would upgrading help?

I also checked this: https://forum.gitea.com/t/can-gitea-meet-those-needs-without-too-much-administration-work/python

I’d appreciate any insights, tips, or alternative approaches to get this working. If more details are needed, I’m happy to provide them.

Thanks in advance for your help!