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

Method DeleteGithubCredentials

runner/github_credentials.go:88–98  ·  view source on GitHub ↗
(ctx context.Context, id uint)

Source from the content-addressed store, hash-verified

86}
87
88func (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
100func (r *Runner) UpdateGithubCredentials(ctx context.Context, id uint, param params.UpdateGithubCredentialsParams) (params.ForgeCredentials, error) {
101 if !auth.IsAdmin(ctx) {

Callers

nothing calls this directly

Calls 2

IsAdminFunction · 0.92

Tested by

no test coverage detected