You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
webhook: fix non-matching webhook secrets not being rejected (#601)
Fixes an issue which allowed webhooks to be processed with an incorrect
webhook secret.
This adds a case to return a `401` when the `verify` function returns
false. The `verify` function also always returns false as it is being
passed in JSON from a `WorkflowJob` webhook object instead of the
request body (which is how GitHub generates it's signitures) meaning the
signatures will never match (see
https://github.com/yanyongyu/githubkit?tab=readme-ov-file#webhook-verification).
0 commit comments