MCPcopy Create free account
hub / github.com/cloudbase/garm / WebhookSecret

Method WebhookSecret

runner/common/pool.go:48–48  ·  view source on GitHub ↗

WebhookSecret returns the unencrypted webhook secret associated with the webhook installed in GitHub for GARM. For GARM to receive webhook events for an entity, either the operator or GARM will have to create a webhook in GitHub which points to the GARM API server. To authenticate the webhook, a web

()

Source from the content-addressed store, hash-verified

46 // GARM will have to create a webhook in GitHub which points to the GARM API server. To authenticate
47 // the webhook, a webhook secret is used. This function returns that secret.
48 WebhookSecret() string
49 // GithubRunnerRegistrationToken returns a new registration token for a github runner. This is used
50 // for GHES installations that have not yet upgraded to a version >= 3.10. Starting with 3.10, we use
51 // just-in-time runners, which no longer require exposing a runner registration token.

Callers 1

DispatchWorkflowJobMethod · 0.95

Implementers 3

basePoolManagerrunner/pool/pool.go
PoolManagerrunner/common/mocks/PoolManager.go
PoolManager_Expecterrunner/common/mocks/PoolManager.go

Calls

no outgoing calls

Tested by

no test coverage detected