diff --git a/pkg/routes/api/v2/admin_users.go b/pkg/routes/api/v2/admin_users.go index 1588b1643..2724e433c 100644 --- a/pkg/routes/api/v2/admin_users.go +++ b/pkg/routes/api/v2/admin_users.go @@ -127,7 +127,7 @@ func adminUsersCreate(_ context.Context, in *struct{ Body models.CreateUserBody if err != nil { return nil, translateDomainError(err) } - return &adminUserBody{Body: shared.NewAdminUser(newUser, providers)}, nil + return &adminUserBody{Body: shared.NewAdminUser(newUser, providers)}, nil //nolint:contextcheck // OIDC provider init deliberately uses a background context — provider lifetime exceeds the request } func adminUsersPatchAdmin(_ context.Context, in *struct { diff --git a/pkg/routes/api/v2/info.go b/pkg/routes/api/v2/info.go index 483abf027..3b4256363 100644 --- a/pkg/routes/api/v2/info.go +++ b/pkg/routes/api/v2/info.go @@ -47,5 +47,5 @@ func RegisterInfoRoutes(api huma.API) { func init() { AddRouteRegistrar(RegisterInfoRoutes) } func info(_ context.Context, _ *struct{}) (*infoBody, error) { - return &infoBody{Body: shared.BuildInfo()}, nil + return &infoBody{Body: shared.BuildInfo()}, nil //nolint:contextcheck // OIDC provider init deliberately uses a background context — provider lifetime exceeds the request }