https://github.com/zhaobenny/github-webhook-filter
Proxy for filtering github webhooks in Go
https://github.com/zhaobenny/github-webhook-filter
github github-webhook
Last synced: 2 months ago
JSON representation
Proxy for filtering github webhooks in Go
- Host: GitHub
- URL: https://github.com/zhaobenny/github-webhook-filter
- Owner: zhaobenny
- License: mit
- Created: 2023-10-12T08:19:11.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-09-05T07:01:49.000Z (7 months ago)
- Last Synced: 2025-09-05T09:09:19.472Z (7 months ago)
- Topics: github, github-webhook
- Language: Go
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🌐 github-webhook-filter
Compact Go application (5 MB) designed to address a common GitHub webhook issue by filtering out push events for specific branches.
(Solving the problem highlighted in this [Stack Overflow question](https://stackoverflow.com/questions/46140233/github-webhooks-triggered-globally-instead-of-per-branch))
All other events will seamlessly continue to be forwarded as usual.
## 🛠️ Usage
Copy the sample docker-compose.yml file for a swift setup.
Set the app's endpoint, `http://:8080/forward`, in the `Payload URL` field within GitHub's `Add webhook` screen.
For the final webhooks destinations, add the URLs to the `WEBHOOKS` env within the Docker Compose file.
(Using the Github webhook `secret` option is also recommended!)
## License
[MIT](https://github.com/zhaobenny/github-webhook-filter/blob/main/LICENSE)