From cc75991270cacf17093d46fa7fca46fcf9a0c8a0 Mon Sep 17 00:00:00 2001 From: Kobi Hikri Date: Tue, 28 Jul 2026 18:41:28 +0300 Subject: [PATCH] ci: read the comment body from env instead of interpolating it into the shell --- .github/workflows/comment-!build-commands.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/comment-!build-commands.yml b/.github/workflows/comment-!build-commands.yml index a1799e557e..b5790cfb47 100644 --- a/.github/workflows/comment-!build-commands.yml +++ b/.github/workflows/comment-!build-commands.yml @@ -42,8 +42,10 @@ jobs: steps: - name: 🔎 Parse command, find branch, and set build flags id: pr_info + env: + COMMENT_BODY: ${{ github.event.comment.body }} run: | - COMMENT="${{ github.event.comment.body }}" + COMMENT="$COMMENT_BODY" # Split into space-separated words read -ra WORDS <<< "$COMMENT"