Skip to content

Dump SuperGrok; Grok reviews use only org XAI_API_KEY - #14

Merged
FlyOverCoderKY merged 3 commits into
mainfrom
cursor/dump-supergrok-xai-api-key-09bb
Aug 16, 2026
Merged

FlyOverCoderKY merged 3 commits into
mainfrom
cursor/dump-supergrok-xai-api-key-09bb

Conversation

@FlyOverCoderKY

@FlyOverCoderKY FlyOverCoderKY commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Grok org-wide PR review now uses only the org XAI_API_KEY against https://api.x.ai/v1, pinned to grok-4.6. SuperGrok session auth is gone. The leftover GROK_AUTH_JSON door is closed.

Same key already works in OpenCode against api.x.ai. Grok review on RetireGolden hit cli-chat-proxy.grok.com (SuperGrok CLI session) and 401'd. After dumping SuperGrok, grok-build 404'd because it is not on Nathan's xAI team. He chose grok-4.6.

What changed

  • Workflow uses only secrets.XAI_API_KEY (already an org secret).
  • Removed GROK_AUTH_JSON from comments, job inputs, and grok_auth_json: ${{ secrets.GROK_AUTH_JSON }}.
  • Added an explicit fail if XAI_API_KEY is empty so the job does not proceed to SuperGrok. No SuperGrok fallback.
  • Kept if: ${{ env.XAI_API_KEY != '' }} on the write-config step (env form, not secrets in step if).
  • Write ~/.grok/config.toml with [model."grok-4.6"] (quoted so the dotted id is one TOML key), model = "grok-4.6", base_url = "https://api.x.ai/v1", and env_key. Default is grok-4.6. The key is not written to the file. No grok-build model block.
  • Action input model: grok-4.6 (accepted by 0xr3ngar/grok-build-review-action v1.0.2).
  • Kept official action pin eded30018cdee4e83dfca14d18f292b860c30cdd. Dummy "{}" satisfies the composite grok_auth_json input. Real auth is config.toml + XAI_API_KEY + base_url.
  • Unchanged: skip-drafts, roast_level: professional, fail_on: never, status_comments: true. No Pegma policy changes.

Validation

  • No GROK_AUTH_JSON anywhere in the workflow.
  • YAML parses; draft-skip if unchanged.
  • Simulated write: config.toml parses to model["grok-4.6"] with base_url and env_key; the key is not in the file.
  • Empty XAI_API_KEY fails closed; a present key continues.
  • Live grok-4.6 review on ee6a22a completed (found the unquoted table header). Header is now quoted.
  • git diff --check

This PR does not add secrets, merge, or publish.

Open in Web Open in Cursor 

Point grok-build at api.x.ai via config.toml (model, base_url, env_key).
Fail closed when XAI_API_KEY is empty. Pass dummy JSON only to satisfy
the pinned review action input; do not use session auth.

Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@cursor

cursor Bot commented Aug 16, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_3ad92fa2-8d6c-4bcb-85a2-aba682203251)

@github-actions

github-actions Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Grok Grok Build Review — no issues

Review complete. No issues found — the changes look solid.

The workflow now authenticates exclusively with the org XAI_API_KEY against https://api.x.ai/v1 and pins the review model to grok-4.6. The empty-key gate fails the job before any SuperGrok session path can run, GROK_AUTH_JSON is removed, and the dummy {} grok_auth_json input satisfies the pinned composite without installing a session token. The generated config.toml is valid TOML, does not contain the key, and matches CLI credential precedence. The change is correct and complete.

Reviewed commit e29736d · workflow run

Nathan's API key team does not have grok-build. Set the action model
input and config.toml default to grok-4.6.

Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
@cursor

cursor Bot commented Aug 16, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_2f2e3520-5090-4814-88e5-923a3e13b02a)

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grok Grok Build Review

The workflow removes SuperGrok session auth, requires the org XAI_API_KEY, and stops writing the key into config.toml. Those controls are sound. The new [model.grok-4.6] table header is not a single TOML key; a spec-compliant parser nests it as model["grok-4"]["6"], so base_url and env_key are not applied to model grok-4.6. That breaks the auth path this change claims to establish. Quote the key.

🐞 1 bugs · ⚠️ 0 warnings · 🤏 0 nits

Reviewed commit ee6a22a · workflow run

Comment thread .github/workflows/grok-code-review.yml Resolved
Unquoted [model.grok-4.6] nests as model.grok-4.6. Use
[model."grok-4.6"] so base_url and env_key attach to grok-4.6.

Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
@cursor

cursor Bot commented Aug 16, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_81a4f958-693c-4535-8879-fb29abe780b6)

@FlyOverCoderKY
FlyOverCoderKY merged commit 7913c9c into main Aug 16, 2026
2 checks passed
@FlyOverCoderKY
FlyOverCoderKY deleted the cursor/dump-supergrok-xai-api-key-09bb branch August 16, 2026 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants