Grok Build intentionally, using a feature flag, uploaded entire user repos including secrets etc to a random x.ai controlled bucket. It was such a PR disaster that they open sourced the code of Grok Build.
I would not touch anything x.ai or Cursor related.