Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: use systembot user for creating issues in gitops (#9073)

Danny Xu9adb671d2da1
diff --git a/backend/api/gitops/webhook.go b/backend/api/gitops/webhook.go
index 0d7a7a123a..16d8ffcb72 100644
--- a/backend/api/gitops/webhook.go
+++ b/backend/api/gitops/webhook.go
@@ -1644,7 +1644,7 @@ func (s *Service) createIssueFromMigrationDetailsV2(ctx context.Context, project
}
}
}
- childCtx := context.WithValue(ctx, common.PrincipalIDContextKey, creatorID)
+ childCtx := context.WithValue(ctx, common.PrincipalIDContextKey, api.SystemBotID)
plan, err := s.rolloutService.CreatePlan(childCtx, &v1pb.CreatePlanRequest{
Parent: fmt.Sprintf("projects/%s", project.ResourceID),
Plan: &v1pb.Plan{