SkillAgentSearch skills...

Githubhook

Github webhook parser in golang

Install / Use

/learn @rjz/Githubhook
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

githubhook

Golang parser for github webhooks. Not a server, though it could be integrated with one.

Go Report Card GoDoc

Installation

$ go get gopkg.in/rjz/githubhook.v0

Usage

Given an incoming *http.Request representing a webhook signed with a secret, use githubhook to validate and parse its content:

secret := []byte("don't tell!")
hook, err := githubhook.Parse(secret, req)

Plays nicely with the google/go-github client!

evt := github.PullRequestEvent{}
if err := json.Unmarshal(hook.Payload, &evt); err != nil {
  fmt.Println("Invalid JSON?", err)
}
View on GitHub
GitHub Stars54
CategoryDevelopment
Updated2mo ago
Forks8

Languages

Go

Security Score

85/100

Audited on Jan 9, 2026

No findings