Functionality specific for Github
Functionality specific for Github
(create-build {st :storage :as rt} {:keys [id payload]})
Looks up details for the given github webhook. If the webhook refers to a valid configuration, a build entity is created and a build structure is returned, which eventually will be passed on to the runner.
Looks up details for the given github webhook. If the webhook refers to a valid configuration, a build entity is created and a build structure is returned, which eventually will be passed on to the runner.
(get-config req)
Lists public github configuration to use
Lists public github configuration to use
(login req)
Invoked by the frontend during OAuth2 login flow. It requests a Github user access token using the given authorization code.
Invoked by the frontend during OAuth2 login flow. It requests a Github user access token using the given authorization code.
(valid-security? {:keys [secret payload x-hub-signature]})
Validates security header
Validates security header
(validate-security h)
(validate-security h get-secret)
Middleware that validates the github security header using a fn that retrieves the secret for the request.
Middleware that validates the github security header using a fn that retrieves the secret for the request.
(webhook {p :parameters :as req})
Receives an incoming webhook from Github. This starts the build runner async and returns a 202 accepted.
Receives an incoming webhook from Github. This starts the build runner async and returns a 202 accepted.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close