(ctx context.Context, id uint)
| 86 | } |
| 87 | |
| 88 | func (r *Runner) DeleteGithubCredentials(ctx context.Context, id uint) error { |
| 89 | if !auth.IsAdmin(ctx) { |
| 90 | return runnerErrors.ErrUnauthorized |
| 91 | } |
| 92 | |
| 93 | if err := r.store.DeleteGithubCredentials(ctx, id); err != nil { |
| 94 | return fmt.Errorf("failed to delete github credentials: %w", err) |
| 95 | } |
| 96 | |
| 97 | return nil |
| 98 | } |
| 99 | |
| 100 | func (r *Runner) UpdateGithubCredentials(ctx context.Context, id uint, param params.UpdateGithubCredentialsParams) (params.ForgeCredentials, error) { |
| 101 | if !auth.IsAdmin(ctx) { |
nothing calls this directly
no test coverage detected