diff --git a/src/main.rs b/src/main.rs index 05e8f20..b30da93 100644 --- a/src/main.rs +++ b/src/main.rs @@ -23,6 +23,8 @@ struct JobSender(Mutex>); #[post("/", data = "")] fn gitea_webhook(payload: Json, sender: State) -> Status { + // TODO: validate Gitea signature + { let sender = sender.0.lock().unwrap(); let repo = &payload.repository;