From 0c6199494b13499036a0e734346a52db05b4ca20 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Wed, 28 Dec 2022 04:39:13 +0530 Subject: [PATCH] feat: install gitea webhook security deps and load gitea webhook module --- Cargo.lock | 3 +++ Cargo.toml | 3 +++ src/ctx/api/v1/mod.rs | 1 + 3 files changed, 7 insertions(+) diff --git a/Cargo.lock b/Cargo.lock index 4cf7531..38ad22e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1449,6 +1449,8 @@ dependencies = [ "derive_more", "futures", "git2", + "hex", + "hmac", "lazy_static", "libconductor", "libconfig", @@ -1464,6 +1466,7 @@ dependencies = [ "serde", "serde_json", "serde_yaml", + "sha2", "sqlx", "tera", "tokio", diff --git a/Cargo.toml b/Cargo.toml index cff0b80..5ac3ad2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -53,6 +53,9 @@ toml = "0.5.9" serde_yaml = "0.9.14" uuid = { version = "1.2.2", features = ["serde"] } reqwest = { version = "0.11.13", features = ["json"] } +sha2 = "0.10.6" +hmac = "0.12.1" +hex= "0.4.3" [dependencies.cache-buster] git = "https://github.com/realaravinth/cache-buster" diff --git a/src/ctx/api/v1/mod.rs b/src/ctx/api/v1/mod.rs index 41c4b67..db1fc2a 100644 --- a/src/ctx/api/v1/mod.rs +++ b/src/ctx/api/v1/mod.rs @@ -16,6 +16,7 @@ */ pub mod account; pub mod auth; +pub mod gitea; pub mod pages; #[cfg(test)]