#github-webhook #webhook #github #gitlab #script #daemon #run

app webhookd

GitLab/GitHub webhook daemon to run scripts on trigger

7 releases

0.2.3 Sep 15, 2024
0.2.2 May 10, 2023
0.2.1 Feb 23, 2021
0.2.0 Mar 8, 2020
0.1.2 Mar 7, 2020

#52 in HTTP server

Download history 13/week @ 2024-07-30 135/week @ 2024-09-10 40/week @ 2024-09-17 15/week @ 2024-09-24 12/week @ 2024-10-01

259 downloads per month

GPL-3.0-or-later

29KB
269 lines

webhookd

A simple GitLab/GitHub web hooks daemon. Run scripts whenever hook is triggered.

Installation

There are two ways:

  1. Run cargo install webhookd to install webhookd.
  2. Use cargo-deb:
> cargo install cargo-deb
> git clone https://github.com/jiegec/webhookd.git
> cd webhookd
> cargo deb --separate-debug-symbols --compress-debug-symbols --install

Configuration

See example.toml for usage. Then, register this webhook in GitLab/GitHub. Currently only json is supported.

Usage

Run webhookd manually:

> RUST_LOG=info webhookd --config config.toml

Run webhookd in systemd:

> sudo systemctl edit webhookd
# Add the following lines if needed
[Service]
User=nobody
Group=nobody
Environment="WEBHOOKD_CONFIG=/path/to/config.toml"

Then, run sudo systemctl enable --now webhookd to activate.

License

Licensed under GPL-3.0-or-later license.

Dependencies

~24–36MB
~733K SLoC