{"id":33755846,"url":"https://github.com/krabiworld/gohook","last_synced_at":"2026-03-10T08:28:05.875Z","repository":{"id":274518986,"uuid":"923132421","full_name":"krabiworld/gohook","owner":"krabiworld","description":"A lightweight GitHub webhook proxy for Discord.","archived":false,"fork":false,"pushed_at":"2026-02-19T10:08:07.000Z","size":298,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-02-19T15:22:18.956Z","etag":null,"topics":["discord","github","gohook","proxy","webhook"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krabiworld.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-27T17:40:40.000Z","updated_at":"2026-02-19T10:07:29.000Z","dependencies_parsed_at":"2025-01-27T20:25:50.484Z","dependency_job_id":"d87f9529-793f-4dd9-bd26-6c0fdf91e1d9","html_url":"https://github.com/krabiworld/gohook","commit_stats":null,"previous_names":["foxocorp/webhook","krabiworld/webhook","krabiworld/gohook"],"tags_count":63,"template":false,"template_full_name":null,"purl":"pkg:github/krabiworld/gohook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krabiworld%2Fgohook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krabiworld%2Fgohook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krabiworld%2Fgohook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krabiworld%2Fgohook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krabiworld","download_url":"https://codeload.github.com/krabiworld/gohook/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krabiworld%2Fgohook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30328221,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T05:25:20.737Z","status":"ssl_error","status_checked_at":"2026-03-10T05:25:17.430Z","response_time":106,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord","github","gohook","proxy","webhook"],"created_at":"2025-12-05T08:03:09.284Z","updated_at":"2026-03-10T08:28:05.851Z","avatar_url":"https://github.com/krabiworld.png","language":"Go","readme":"# Gohook\n\n![Build](https://github.com/krabiworld/gohook/actions/workflows/build.yml/badge.svg)\n![License](https://img.shields.io/github/license/krabiworld/gohook)\n![GitHub stars](https://img.shields.io/github/stars/krabiworld/gohook?style=social)\n\nA lightweight GitHub webhook proxy for Discord.\n\n## Installation\n\n### Docker\n\n```shell\ndocker run --name gohook -d -p 8080:8080 ghcr.io/krabiworld/gohook\n```\n\n### Docker Compose\n\n```yaml\nservices:\n  gohook:\n    image: \"ghcr.io/krabiworld/gohook\"\n    ports:\n      - \"8080:8080\"\n```\n\n### Kubernetes\n\n```shell\nhelm repo add gohook https://krabiworld.github.io/gohook\nhelm install gohook gohook/gohook\n```\n\nOr you can use OCI repository:\n\n```shell\nhelm install gohook oci://ghcr.io/krabiworld/gohook\n```\n\nSee [helm/values.yaml](helm/values.yaml)\n\n### Precompiled binaries\n\nYou can download precompiled binaries for Linux, macOS and Windows from the [GitHub Releases](https://github.com/krabiworld/gohook/releases) page.\n\n### Building from source\n\nTo build gohook from source, you only need Go (the version specified in [go.mod](go.mod) or later).\n\nStart by cloning the repository:\n\n```shell\ngit clone https://github.com/krabiworld/gohook.git\ncd gohook\n```\n\nThen build the binary and run it:\n\n```shell\ngo build ./cmd/gohook\n./gohook\n```\n\n## Usage\n\n1. Create a webhook in Discord\n   1. Go to Discord channel settings -\u003e Integrations\n   2. Click Create Webhook, give it a name\n   3. Copy the webhook URL\n2. Configure GitHub\n   1. Go to `https://github.com/\u003cusername\u003e/\u003crepository\u003e/settings/hooks/new`\n   2. In **Payload URL**, paste the copied Discord Webhook URL and replace `https://discord.com/api/webhooks` with your Gohook URL\n    ```text\n    Original Discord URL:\n    https://discord.com/api/webhooks/123456/abcdef\n    \n    Replace with Gohook URL:\n    https://gohook.your-domain.com/123456/abcdef\n    ```\n   3. In **Content Type**, select `application/json`\n   4. In **Secret**, paste your secret (if you set environment variable `SECRET`)\n   5. In **Which events would you like to trigger this webhook?**, select `Send me everything.`\n   6. Click Add webhook\n\n## Configuration\n\nAll environment variables are optional.\n\n| Variable        | Description                                                                 | Default value | Example                                  |\n|-----------------|-----------------------------------------------------------------------------|---------------|------------------------------------------|\n| `ADDR`          | Address and port the server listens on.                                     | `:8080`       | `127.0.0.1:9000`                         |\n| `SECRET`        | Shared secret to validate GitHub signatures. Leave empty to disable checks. |               | `random-string`                          |\n| `HAPPY_EMOJI`   | Emoji displayed when someone stars the repository.                          |               | 🔥 or `\u003c:foxtada:1399709119304306746\u003e`   |\n| `SUCCESS_EMOJI` | Emoji displayed for successful workflows or checks.                         |               | ✨ or `\u003c:catgood:1399709119304306747\u003e`    |\n| `FAILURE_EMOJI` | Emoji displayed for failed workflows or checks.                             |               | 😭 or `\u003c:catscream:1399709119304306748\u003e` |\n\n## Events\n\n| API name        | UI name            | Supported actions                                    | Notes                                                                                         |\n|-----------------|--------------------|------------------------------------------------------|-----------------------------------------------------------------------------------------------|\n| `check_run`     | Check runs         | `completed`                                          | Ignores these checks: `Dependabot`, `GitHub Actions` and `GitHub Advanced Security`           |\n| `fork`          | Forks              |                                                      |                                                                                               |\n| `issue_comment` | Issue comments     | All                                                  |                                                                                               |\n| `issues`        | Issues             | All                                                  |                                                                                               |\n| `public`        | Visibility changes |                                                      |                                                                                               |\n| `pull_request`  | Pull requests      | All except `labeled` and `synchronize`               |                                                                                               |\n| `push`          | Pushes             |                                                      |                                                                                               |\n| `release`       | Releases           | `published`                                          |                                                                                               |\n| `repository`    | Repositories       | `archived`, `privatized`, `renamed` and `unarchived` |                                                                                               |\n| `star`          | Stars              | `created`                                            |                                                                                               |\n| `workflow_run`  | Workflow runs      | `completed`                                          | Ignores these workflows: `CodeQL`, `Dependabot Updates` and `Automatic Dependency Submission` |\n\n## Endpoints\n\n- GET: `/health`\n- POST: `/:id/:token`\n\n## Proxy support\n\nAll standard environment variables are supported, such as `HTTP_PROXY`, `HTTPS_PROXY` and `ALL_PROXY`.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrabiworld%2Fgohook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrabiworld%2Fgohook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrabiworld%2Fgohook/lists"}