Closed aisbergg closed 4 years ago
Add authorization checking for Gitea webhooks.
The webhooks of Gitea and Gogs include the secret inside the json payload (see https://docs.gitea.io/en-us/webhooks/ ). All the PR does is decode the json and compare the given secret with the stored webhook secret.
Not sure how I missed this. Thanks!
Add authorization checking for Gitea webhooks.
The webhooks of Gitea and Gogs include the secret inside the json payload (see https://docs.gitea.io/en-us/webhooks/ ). All the PR does is decode the json and compare the given secret with the stored webhook secret.