{"id":13875885,"url":"https://github.com/qubyte/github_webhook_message_validator","last_synced_at":"2025-03-19T21:30:39.907Z","repository":{"id":48129671,"uuid":"51224424","full_name":"qubyte/github_webhook_message_validator","owner":"qubyte","description":"A library to check that payloads from github webhooks are valid.","archived":false,"fork":false,"pushed_at":"2022-07-21T22:30:00.000Z","size":21,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-28T21:59:33.270Z","etag":null,"topics":["github-webhooks","validate","webhook"],"latest_commit_sha":null,"homepage":"https://docs.rs/github_webhook_message_validator/","language":"Rust","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/qubyte.png","metadata":{"files":{"readme":"README.md","changelog":"HISTORY.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-06T22:07:39.000Z","updated_at":"2023-09-26T17:07:24.000Z","dependencies_parsed_at":"2022-08-12T19:20:18.414Z","dependency_job_id":null,"html_url":"https://github.com/qubyte/github_webhook_message_validator","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qubyte%2Fgithub_webhook_message_validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qubyte%2Fgithub_webhook_message_validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qubyte%2Fgithub_webhook_message_validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qubyte%2Fgithub_webhook_message_validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qubyte","download_url":"https://codeload.github.com/qubyte/github_webhook_message_validator/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244056406,"owners_count":20390719,"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","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","validate","webhook"],"created_at":"2024-08-06T06:00:48.906Z","updated_at":"2025-03-19T21:30:39.583Z","avatar_url":"https://github.com/qubyte.png","language":"Rust","funding_links":[],"categories":["Rust","others"],"sub_categories":[],"readme":"# GitHub webhook message validator\n\nThis package currently contains a single utility function, which may be used to validate the package\nof a GitHub webhook request against a shared secret.\n\nNote that if you get the signature from the `X-Hub-Signature` header, you'll need to convert it to\nbytes via hex. One way is to use the\n[hex crate decode_to_slice function](https://docs.rs/hex/0.4.3/hex/fn.decode_to_slice.html).\n\n## Example\n\n```rust\nuse github_webhook_message_validator::validate;\n\nlet signature = \u0026vec![\n    115, 109, 127, 147, 66, 242, 167, 210, 57, 175, 165, 81, 58, 75, 178, 40, 62, 14, 21, 136\n];\nlet secret = b\"some-secret\";\nlet message = b\"blah-blah-blah\";\n\nassert_eq!(validate(secret, signature, message), true);\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqubyte%2Fgithub_webhook_message_validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqubyte%2Fgithub_webhook_message_validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqubyte%2Fgithub_webhook_message_validator/lists"}