{"id":20284457,"url":"https://github.com/artyom/ghwh","last_synced_at":"2026-05-12T14:01:36.370Z","repository":{"id":25633076,"uuid":"29068394","full_name":"artyom/ghwh","owner":"artyom","description":"Run commands on receiving github push webhook events","archived":false,"fork":false,"pushed_at":"2023-01-04T11:13:28.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-02T21:53:51.577Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/artyom.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-01-10T19:33:20.000Z","updated_at":"2023-01-04T11:13:25.000Z","dependencies_parsed_at":"2023-01-14T03:02:28.584Z","dependency_job_id":null,"html_url":"https://github.com/artyom/ghwh","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/artyom/ghwh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyom%2Fghwh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyom%2Fghwh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyom%2Fghwh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyom%2Fghwh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/artyom","download_url":"https://codeload.github.com/artyom/ghwh/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/artyom%2Fghwh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32942147,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2024-11-14T14:19:49.662Z","updated_at":"2026-05-12T14:01:36.339Z","avatar_url":"https://github.com/artyom.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"ghwh - github webhook handler\n=============================\n\nThis small utility can be used to run commands on push github webhook events.\n\nInstall it:\n\n\tgo get -u github.com/artyom/ghwh\n\nUse it:\n\n\tUsage of ghwh:\n\t  -cert=\"\": path to ssl certificate\n\t  -config=\"\": path to config (yaml)\n\t  -key=\"\": path to ssl certificate key\n\t  -listen=\"127.0.0.1:8080\": address to listen at\n\t  -qsize=10: job queue size\n\nConfiguration file example:\n\n```yaml\n/hook1:\n  reponame: ghwh\n  secret: someSecret\n  command: /usr/bin/touch\n  args:\n    - /tmp/ghwh-updated\n  refs:\n    \"refs/heads/dev\":\n      command: /usr/bin/touch\n      args:\n        - /tmp/ghwh-dev-updated\n        - /tmp/second-arg\n\n/hook2:\n  reponame: bar\n  refs:\n    \"refs/heads/master\":\n      command: /usr/bin/local/some-script\n      args:\n        - \"--branch=master\"\n```\n\n\nThis configuration defines two hook endpoints for two separate repositories.\nFirst endpoint mapped to `/hook1` and handles hooks for `ghwh` repository,\nvalidating each request against [shared secret][1]. For `refs/heads/dev` ref.\ncommand `/usr/bin/touch /tmp/ghwh-dev-updated /tmp/second-arg` is called, for\nevery other branch command `/usr/bin/touch /tmp/ghwh-updated`.\n\nSecond hook `/hook2` handles updates of `bar` repository and processes only\nevents for `refs/heads/master` ref., running command\n`/usr/bin/local/some-script --branch=master`.\n\nCurrent implementation runs all commands one by one, queue size can be\nconfigured with `-qsize` flag. This may change in the future.\n\nIf both `-cert` and `-key` flags set, ghwh tries to use https protocol,\notherwise plain http is used. If https is used with self-signed certificates,\ndo not forget to set `insecure_ssl=1` while [setting up webhook][1].\n\n[1]: https://developer.github.com/v3/repos/hooks/#create-a-hook\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartyom%2Fghwh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fartyom%2Fghwh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fartyom%2Fghwh/lists"}