()
| 2315 | } |
| 2316 | |
| 2317 | func (r *basePoolManager) GithubRunnerRegistrationToken() (string, error) { |
| 2318 | tk, ghResp, err := r.ghcli.CreateEntityRegistrationToken(r.ctx) |
| 2319 | if err != nil { |
| 2320 | if ghResp != nil && ghResp.StatusCode == http.StatusUnauthorized { |
| 2321 | return "", runnerErrors.NewUnauthorizedError("error fetching token") |
| 2322 | } |
| 2323 | return "", fmt.Errorf("error creating runner token: %w", err) |
| 2324 | } |
| 2325 | return *tk.Token, nil |
| 2326 | } |
| 2327 | |
| 2328 | func (r *basePoolManager) FetchTools() ([]commonParams.RunnerApplicationDownload, error) { |
| 2329 | tools, ghResp, err := r.ghcli.ListEntityRunnerApplicationDownloads(r.ctx) |
nothing calls this directly
no test coverage detected