Skip to content

fix(action): surface raw invalid JSON output#516

Open
zerone0x wants to merge 1 commit intogoogle-github-actions:mainfrom
zerone0x:fix/include-raw-invalid-json-output-489
Open

fix(action): surface raw invalid JSON output#516
zerone0x wants to merge 1 commit intogoogle-github-actions:mainfrom
zerone0x:fix/include-raw-invalid-json-output-489

Conversation

@zerone0x
Copy link
Copy Markdown

@zerone0x zerone0x commented May 9, 2026

Summary

Fixes #489.

When Gemini CLI emits non-JSON stdout/stderr, the action currently logs only generic warnings. This change prints the raw stream content directly into the step logs (capped to the first 200 lines) so the real failure is visible without downloading artifacts.

Changes

  • add a small bash helper to surface raw non-JSON stdout/stderr in grouped logs
  • wrap the raw output with GitHub's stop-commands guard so tool output cannot be interpreted as workflow commands
  • keep the full logs in the existing artifacts and note when the inline preview is truncated

Testing

  • Checking formatting...
    All matched files use Prettier code style!
  • ran the helper locally with sample invalid output to verify the stop-commands/truncation behavior

🤖 Generated with Claude Code

@zerone0x zerone0x requested review from a team as code owners May 9, 2026 02:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Output real error instead of generic Gemini CLI stderr was not valid JSON

1 participant