From 2933f0744080f0b33a37981f432e6a855a87a6aa Mon Sep 17 00:00:00 2001 From: Rohit Malhotra Date: Sun, 29 Dec 2024 01:02:14 -0500 Subject: [PATCH] [Fix]: Prevent back tick escape (#5897) --- .github/workflows/openhands-resolver.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/openhands-resolver.yml b/.github/workflows/openhands-resolver.yml index 2db2907eba9a..028316ee05d5 100644 --- a/.github/workflows/openhands-resolver.yml +++ b/.github/workflows/openhands-resolver.yml @@ -185,12 +185,17 @@ jobs: - name: Install OpenHands uses: actions/github-script@v7 + env: + COMMENT_BODY: ${{ github.event.comment.body || '' }} + REVIEW_BODY: ${{ github.event.review.body || '' }} + LABEL_NAME: ${{ github.event.label.name || '' }} + EVENT_NAME: ${{ github.event_name }} with: script: | - const commentBody = `${{ github.event.comment.body || '' }}`.trim(); - const reviewBody = `${{ github.event.review.body || '' }}`.trim(); - const labelName = `${{ github.event.label.name || '' }}`.trim(); - const eventName = `${{ github.event_name }}`.trim(); + const commentBody = process.env.COMMENT_BODY.trim(); + const reviewBody = process.env.REVIEW_BODY.trim(); + const labelName = process.env.LABEL_NAME.trim(); + const eventName = process.env.EVENT_NAME.trim(); // Check conditions const isExperimentalLabel = labelName === "fix-me-experimental";