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.
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.
make build #build
make docker # build docker image
or
go build
go test