Repository navigation
Allow Grok reviews to use XAI_API_KEY - #13
Conversation
Write ~/.grok/config.toml only when the API key secret is set, keep GROK_AUTH_JSON as fallback, and pin the review action to v1.0.2. Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
|
You have reached your Codex usage limits for security reviews. Please try again later. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bef80c01e3
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
GitHub rejects secrets in step-level if expressions, which blocked workflow validation. Gate the config write on env.XAI_API_KEY instead. Co-authored-by: Fly Over Coder <FlyOverCoder@gmail.com>
Bugbot couldn't run - usage limit reachedBugbot 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_69ffef1c-5eb9-4006-915e-6febddc14d16) |
|

Summary
Grok org-wide PR review can now use an API key when
XAI_API_KEYis set, while SuperGrok session auth stays as fallback.What changed
ifon the review job is unchanged).XAI_API_KEY: ${{ secrets.XAI_API_KEY }}.env.XAI_API_KEYis non-empty, write~/.grok/config.tomlwithenv_key = "XAI_API_KEY"only. The key is not written to the file; the step uses a quoted heredoc and does not echo the secret.ifusesenv.XAI_API_KEY != ''(notsecrets.*). GitHub does not allow thesecretscontext in step-levelifexpressions; that was failing workflow validation.secrets.GROK_AUTH_JSON. When the API key is present, CLIenv_keyoutranksauth.json. When it is empty, the SuperGrok session keeps working.roast_level: professional,fail_on: never,status_comments: true.0xr3ngar/grok-build-review-actionto publishedv1.0.2(eded30018cdee4e83dfca14d18f292b860c30cdd). Same repo; no permission changes vs v1.0.1 (composite action, nopermissionsblock). The release only forwardsmodel/effortto the CLI.effort/custom_instructionsmatrix (would be noisy on this org-wide workflow). NoAGENTS.mdadded.Validation
ifunchanged.XAI_API_KEYin the environment:config.tomlmatches the required contents exactly and does not contain the key.ifno longer referencessecrets(Codex P1).git diff --checkThis PR does not add secrets, merge, or publish. Org owners still need to set
XAI_API_KEYthemselves if they want API-key auth.