(ctx context.Context)
| 100 | } |
| 101 | |
| 102 | func (r *Runner) ListGithubEndpoints(ctx context.Context) ([]params.ForgeEndpoint, error) { |
| 103 | if !auth.IsAdmin(ctx) { |
| 104 | return nil, runnerErrors.ErrUnauthorized |
| 105 | } |
| 106 | |
| 107 | endpoints, err := r.store.ListGithubEndpoints(ctx) |
| 108 | if err != nil { |
| 109 | return nil, fmt.Errorf("failed to list github endpoints: %w", err) |
| 110 | } |
| 111 | |
| 112 | return endpoints, nil |
| 113 | } |
nothing calls this directly
no test coverage detected