From a3fbef6fc64457dbe67c19630a96d0fca506ec80 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Mon, 29 Mar 2021 18:12:06 +0200 Subject: [PATCH] main: add TODO --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) 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;