From 573c4c699b2b27548691231c4b624bf28e16075b Mon Sep 17 00:00:00 2001 From: Prashant Shahi Date: Thu, 9 Jan 2025 18:25:54 +0530 Subject: [PATCH] fix(releaser): escape GH_EVENT_PAYLOAD JSON string argument Signed-off-by: Prashant Shahi --- .github/workflows/github-trigger.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github-trigger.yaml b/.github/workflows/github-trigger.yaml index 93c7682..bbb9f4b 100644 --- a/.github/workflows/github-trigger.yaml +++ b/.github/workflows/github-trigger.yaml @@ -61,10 +61,10 @@ jobs: GH_EVENT_NAME: ${{ inputs.GITHUB_EVENT_NAME }} GH_EVENT_PAYLOAD: ${{ inputs.GITHUB_EVENT_PAYLOAD }} run: | - GH_EVENT_PAYLOAD=$(echo "${GH_EVENT_PAYLOAD}" | jq -c .) + GH_EVENT_PAYLOAD=$(echo "${GH_EVENT_PAYLOAD}" | jq -c . | jq -rR .) echo "compacted GH_EVENT_PAYLOAD: ${GH_EVENT_PAYLOAD}" $MAKE github-event-trigger-workflow \ GITHUB_ARGS="-t ${{ steps.token.outputs.token }} \ -r ${GH_REPOSITORY} \ -e ${GH_EVENT_NAME} \ - -p ${GH_EVENT_PAYLOAD} " + -p '${GH_EVENT_PAYLOAD}'"