0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-12-23 15:53:07 -05:00
forgejo/routers
KN4CK3R 9b1b4b5433
Refactor Webhook + Add X-Hub-Signature (#16176)
This PR removes multiple unneeded fields from the `HookTask` struct and adds the two headers `X-Hub-Signature` and `X-Hub-Signature-256`.

## ⚠️ BREAKING ⚠️ 

* The `Secret` field is no longer passed as part of the payload.
* "Breaking" change (or fix?): The webhook history shows the real called url and not the url registered in the webhook (`deliver.go`@129).

Close #16115
Fixes #7788
Fixes #11755

Co-authored-by: zeripath <art27@cantab.net>
2021-06-27 20:21:09 +01:00
..
api/v1 Refactor Webhook + Add X-Hub-Signature (#16176) 2021-06-27 20:21:09 +01:00
common Rework repository archive (#14723) 2021-06-23 17:12:38 -04:00
install Add --quiet and --verbose to gitea web to control initial logging (#16260) 2021-06-26 20:56:58 -04:00
private Add tag protection (#15629) 2021-06-25 16:28:55 +02:00
utils Clarify the suffices and prefixes of setting.AppSubURL and setting.AppURL (#12999) 2021-02-19 22:36:43 +01:00
web Refactor Webhook + Add X-Hub-Signature (#16176) 2021-06-27 20:21:09 +01:00
init.go Add --quiet and --verbose to gitea web to control initial logging (#16260) 2021-06-26 20:56:58 -04:00