You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dump SuperGrok; Grok reviews use only org XAI_API_KEY - #14
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.
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>
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.
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>
The reason will be displayed to describe this comment to others. Learn more.
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.
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Grok org-wide PR review now uses only the org
XAI_API_KEYagainsthttps://api.x.ai/v1, pinned to grok-4.6. SuperGrok session auth is gone. The leftoverGROK_AUTH_JSONdoor is closed.Same key already works in OpenCode against
api.x.ai. Grok review on RetireGolden hitcli-chat-proxy.grok.com(SuperGrok CLI session) and 401'd. After dumping SuperGrok,grok-build404'd because it is not on Nathan's xAI team. He chose grok-4.6.What changed
secrets.XAI_API_KEY(already an org secret).GROK_AUTH_JSONfrom comments, job inputs, andgrok_auth_json: ${{ secrets.GROK_AUTH_JSON }}.XAI_API_KEYis empty so the job does not proceed to SuperGrok. No SuperGrok fallback.if: ${{ env.XAI_API_KEY != '' }}on the write-config step (env form, notsecretsin stepif).~/.grok/config.tomlwith[model."grok-4.6"](quoted so the dotted id is one TOML key),model = "grok-4.6",base_url = "https://api.x.ai/v1", andenv_key. Default isgrok-4.6. The key is not written to the file. No grok-build model block.model: grok-4.6(accepted by0xr3ngar/grok-build-review-actionv1.0.2).eded30018cdee4e83dfca14d18f292b860c30cdd. Dummy"{}"satisfies the compositegrok_auth_jsoninput. Real auth isconfig.toml+XAI_API_KEY+base_url.roast_level: professional,fail_on: never,status_comments: true. No Pegma policy changes.Validation
GROK_AUTH_JSONanywhere in the workflow.ifunchanged.config.tomlparses tomodel["grok-4.6"]withbase_urlandenv_key; the key is not in the file.XAI_API_KEYfails closed; a present key continues.ee6a22acompleted (found the unquoted table header). Header is now quoted.git diff --checkThis PR does not add secrets, merge, or publish.