{"id":32161832,"url":"https://github.com/tsani/servant-github-webhook","last_synced_at":"2025-10-21T13:59:06.413Z","repository":{"id":10982053,"uuid":"67881559","full_name":"tsani/servant-github-webhook","owner":"tsani","description":"Servant combinators for writing secure GitHub webhooks","archived":false,"fork":false,"pushed_at":"2023-08-23T12:11:18.000Z","size":55,"stargazers_count":17,"open_issues_count":5,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-21T13:59:04.706Z","etag":null,"topics":["github-webhooks","haskell-library"],"latest_commit_sha":null,"homepage":"","language":"Haskell","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/tsani.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog.md","contributing":"CONTRIBUTING.md","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":"2016-09-10T16:23:07.000Z","updated_at":"2023-08-23T12:09:42.000Z","dependencies_parsed_at":"2022-07-27T20:49:47.522Z","dependency_job_id":null,"html_url":"https://github.com/tsani/servant-github-webhook","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/tsani/servant-github-webhook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsani%2Fservant-github-webhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsani%2Fservant-github-webhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsani%2Fservant-github-webhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsani%2Fservant-github-webhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tsani","download_url":"https://codeload.github.com/tsani/servant-github-webhook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tsani%2Fservant-github-webhook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280272339,"owners_count":26302260,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-21T02:00:06.614Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["github-webhooks","haskell-library"],"created_at":"2025-10-21T13:59:01.731Z","updated_at":"2025-10-21T13:59:06.405Z","avatar_url":"https://github.com/tsani.png","language":"Haskell","funding_links":[],"categories":[],"sub_categories":[],"readme":"servant-github-webhook\n======================\n\n[![Build status](https://github.com/tsani/servant-github-webhook/actions/workflows/cabal.yml/badge.svg)](https://github.com/tsani/servant-github-webhook/actions/workflows/cabal.yml)\n[![Build Status][badge-travis]][travis]\n[![Hackage][badge-hackage]][hackage]\n[![servant-github-webhook][badge-stackage-lts]][stackage-lts]\n[![servant-github-webhook][badge-stackage-nightly]][stackage-nightly]\n\nThis library facilitates writing Servant routes that can safely act as GitHub\nwebhooks.\n\nFeatures:\n\n  * Dispatching to routes based on the type of repository event.\n  * Automatic verification of request signatures.\n  * Route protection expressed in the type system, so webhook routes and\n    regular routes cannot be confused.\n\nWhy use servant-github-webhook?\n-------------------------------\n\nA webhook server needs to be publicly hosted. How can legitimate requests sent\nby GitHub be distinguished from (malicious) requests sent by other clients?\n\nWhen a webhook is configured on a repository, a *secret key* is added. This key\nis used by GitHub to compute a *signature* of the request body that it sends;\nthis signature is included in the request headers. The routing combinators in\nservant-github-webhook compute the signature of the received request body using\nthe same key, and check that the signature in the request headers matches. If\nit does, then the request is legitimate.\n\n[hackage]: https://hackage.haskell.org/package/servant-github-webhook\n[badge-hackage]: https://img.shields.io/hackage/v/servant-github-webhook.svg\n[travis]: https://travis-ci.org/tsani/servant-github-webhook?branch=master\n[badge-travis]: https://travis-ci.org/tsani/servant-github-webhook.svg?branch=master\n\n[badge-stackage-lts]: http://stackage.org/package/servant-github-webhook/badge/lts\n[stackage-lts]: https://stackage.org/lts/package/servant-github-webhook\n[badge-stackage-nightly]: http://stackage.org/package/servant-github-webhook/badge/nightly\n[stackage-nightly]: http://stackage.org/nightly/package/servant-github-webhook\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsani%2Fservant-github-webhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftsani%2Fservant-github-webhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftsani%2Fservant-github-webhook/lists"}