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

Method GithubRunnerRegistrationToken

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

GithubRunnerRegistrationToken returns a new registration token for a github runner. This is used for GHES installations that have not yet upgraded to a version >= 3.10. Starting with 3.10, we use just-in-time runners, which no longer require exposing a runner registration token.

()

Source from the content-addressed store, hash-verified

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.
52 GithubRunnerRegistrationToken() (string, error)
53 // HandleWorkflowJob handles a workflow job meant for a particular entity. When a webhook is fired for
54 // a repo, org or enterprise, we determine the destination of that webhook, retrieve the pool manager
55 // for it and call this function with the WorkflowJob as a parameter.

Callers 1

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