Custom webhooks are no longer working with Codeberg

First off, apologies if this is in the wrong space or category. This is more of a question but also feels project related and the Project Discussion category had a few more topics with the copr-team tag, so I figured I’d go for it and try my luck.

For a while now, I’ve been maintaining a copr of podman-desktop. The spec file and source are hosted on Codeberg and trigger a copr build on push. This used to work fine until recently (4 weeks or so ago) but when preparing for podman-desktop 1.24.0 today, I noticed that the copr builds are no longer being triggered. The Codeberg webhook still sends a POST request to copr but it receives a 200 with content from Anubis for bot protection, so the build never gets triggered.

I know a few other projects set up some custom headers to prevent Anubis from kicking in but I don’t think I have that option with Codeberg’s webhooks.

Is there anything else I can do to make this work again?

I’d be happy for any input or suggestions!

EDIT: For anyone wondering why there are builds for 1.24.0 in the copr, I managed to get it to work by copying the request and replaying it using curl. This works but is still suboptimal as it prevents me from fully automating the build process

Hello @curtisy ,

thank you very much for the report / question. To me, this looks like an obvious bug on our side, so I created an upstream ticket Custom webhooks are no longer working with Codeberg · Issue #4083 · fedora-copr/copr · GitHub

The Christmas PTOs are starting soon so it may take a while until somebody gets time to fix the problem, but we will get to it :slight_smile:

on which route the POST request codeberg sends? AFAIK it should be on /webhooks so this should not be affected by Anubis.

Thanks for investigating :slight_smile:

I replied to this on GitHub as well but for completeness:

The POST request I configured points to Making sure you're not a bot!/<PACKAGE_NAME>/

with GUID being the value I copied from Settings > Integrations in copr and PACKAGE_NAME in this case being podman-desktop