From de35d74e498d0b55476fa32ce2c32b4841375d08 Mon Sep 17 00:00:00 2001 From: Amon Oda <92672875+SalmonPlays@users.noreply.github.com> Date: Thu, 4 Jun 2026 16:33:14 +0900 Subject: [PATCH] docs: avoid interpolating Codex output in shell examples Route Codex output through an environment variable before printing it so examples do not splice generated text directly into a shell script. --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index c8125fa..80ec8ff 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,9 @@ Run OpenAI Codex CLI non-interactively in GitHub Actions workflows via [codex-do openai_api_key: ${{ secrets.OPENAI_API_KEY }} - name: Use result - run: echo "${{ steps.codex.outputs.result }}" + env: + CODEX_RESULT: ${{ steps.codex.outputs.result }} + run: printf '%s\n' "$CODEX_RESULT" ``` --- @@ -579,7 +581,9 @@ jobs: timeout: "600" - name: Print analysis - run: echo "${{ steps.codex.outputs.result }}" + env: + CODEX_RESULT: ${{ steps.codex.outputs.result }} + run: printf '%s\n' "$CODEX_RESULT" ``` ---