Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.16 KB

File metadata and controls

27 lines (18 loc) · 1.16 KB

gitea-tektoncd-event interceptor

This a custom gitea interceptor for tekton triggers. It is used by k8sCI to validate gitea webhook requests.

The primary function is use the configured webhook secret key to validate payload encryption checksum.

This code borrows heavily from go-github, which is modified for use in gitea. Much gratitude the developers of that project.

usage

This is for use as a webhook interceptor so that a tekton event listener can process gitea webhooks. See tekton triggers event listeners for more details.

The docker image is published at [keyporttech/gitea-tektconcd-event-interceptor] (https://hub.docker.com/repository/docker/keyporttech/gitea-tektconcd-event-interceptor), and this image is used as service deployment in the k8sCI.

building locally

Prerequisites: golang, docker, makefile installed

make build #build
make docker # build docker image

or

go build
go test