Commit graph

28 commits

Author SHA1 Message Date
Antoine Martin c37a390f6c lohr: fix clippy lint 2021-09-04 18:16:38 +02:00
Antoine Martin b78c486a0e lohr: upgrade to Rocket v0.5.0-rc.1 2021-06-10 05:36:39 +02:00
Antoine Martin 1f6fe74d03 lohr: upgrade to latest Rocket master 2021-06-04 17:31:00 +02:00
Antoine Martin 776876233f gitea: use ssh_url instead of clone_url
Fixes #2
2021-04-08 01:46:52 +02:00
Antoine Martin 3a93d9f994 lohr: build on rust stable
Switching to Rocket's master branch (soon to be 0.5.0) allows building
with a stable Rust compiler, yay!
2021-04-08 01:39:21 +02:00
Antoine Martin da20e2c9ac cargo fmt
whoops
2021-03-31 21:04:30 +02:00
Antoine Martin 29c0a4abdf lohr: v0.3.3 2021-03-31 19:39:04 +02:00
Antoine Martin fe52787f4d lohr: v0.3.2 2021-03-31 19:06:36 +02:00
Antoine Martin e68fcf3e52 settings: blacklist isn't required 2021-03-31 18:57:50 +02:00
Antoine Martin a516d841e1 lohr: v0.3.1 2021-03-30 23:02:32 +02:00
Antoine Martin aba153726b main: log when skipping blacklisted repo 2021-03-30 22:53:33 +02:00
Antoine Martin 422024d919 main: support config override with CLI flag 2021-03-30 22:51:51 +02:00
Antoine Martin ff90b5fb2d job: move blacklist processing to request 2021-03-30 22:00:59 +02:00
Bruno BELANYI 6f63b4c95c main: add LOHR_CONFIG variable 2021-03-30 18:46:14 +00:00
Bruno BELANYI 9de7c783ae job: add processing blacklist to global config 2021-03-30 16:28:00 +00:00
Antoine Martin 209e1e58c7 job: filter out empty lines from .lohr file 2021-03-30 15:27:15 +02:00
Antoine Martin 1be64262b2 main: remove solved TODO item 2021-03-30 14:45:43 +02:00
Antoine Martin fea9d61d2b signature: fix unused trait warning 2021-03-30 11:41:16 +02:00
Antoine Martin 7e3c8b8f28 lohr: validate webhook signature
Previously lohr was unusable in a production setting, anyone could forge
a malicious webhook and either:

- mirror a private repo of yours to another remote they own
- wipe a repo of yours by forcing mirroring from an empty mirror

This is no longer the case!
2021-03-30 11:33:42 +02:00
Antoine Martin 3ccf08f5bd job: remove redundant repo name from log 2021-03-29 20:54:19 +02:00
Bruno BELANYI 295a28bab4 lohr: add default and additional remotes
Co-authored-by: Antoine Martin <antoine@alarsyo.net>
2021-03-29 20:52:04 +02:00
Antoine Martin 7c21d65920 job: log success when finished 2021-03-29 20:11:37 +02:00
Antoine Martin a3fbef6fc6 main: add TODO 2021-03-29 18:12:06 +02:00
Antoine Martin ae3ab8c893 job: remove debug print 2021-03-29 17:45:25 +02:00
Antoine Martin f13d8e142e job: read remotes list from repository 2021-03-29 17:21:55 +02:00
Antoine Martin 2bd817099f first working POC 2021-03-29 17:10:53 +02:00
Antoine Martin b37891af49 setup basic app 2021-03-29 02:01:53 +02:00
Antoine Martin 2cb5dbd22c Initial commit 2021-03-27 10:42:49 +01:00