From 41314b5c31cc3d20b8e46cb309535deee480fc55 Mon Sep 17 00:00:00 2001 From: Vemund Gaukstad Date: Mon, 26 Aug 2024 09:25:52 +0200 Subject: [PATCH] Fix quote escape bug in products pipeline (#871) * use single quote instead of double quotes * fixing possible issue with single quotes --------- Co-authored-by: tjololo <1145298+tjololo@users.noreply.github.com> --- actions/terraform/plan/action.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/actions/terraform/plan/action.yaml b/actions/terraform/plan/action.yaml index 365bf8a6..50a8d92e 100644 --- a/actions/terraform/plan/action.yaml +++ b/actions/terraform/plan/action.yaml @@ -143,6 +143,9 @@ runs: id: action_summary shell: bash if: always() + env: + VALIDATE_OUTPUT: ${{ steps.validate.outputs.stdout }} + PLAN_OUTPUT: ${{ steps.plan.outputs.stdout }} working-directory: ${{ inputs.working_directory }} run: | echo "#"" Terraform ${{ inputs.oidc_type }} ${{ inputs.oidc_value }}" >> $GITHUB_STEP_SUMMARY @@ -155,7 +158,7 @@ runs: echo "
Validation Output" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY echo "\`\`\`\n" >> $GITHUB_STEP_SUMMARY - echo "${{ steps.validate.outputs.stdout }}" >> $GITHUB_STEP_SUMMARY + echo "${VALIDATE_OUTPUT}" >> $GITHUB_STEP_SUMMARY echo "\`\`\`" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY echo "
" >> $GITHUB_STEP_SUMMARY @@ -166,7 +169,7 @@ runs: echo "
Show Plan" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY echo "\`\`\`\n" >> $GITHUB_STEP_SUMMARY - echo "${{ steps.plan.outputs.stdout }}" >> $GITHUB_STEP_SUMMARY + echo "${PLAN_OUTPUT}" >> $GITHUB_STEP_SUMMARY echo "\`\`\`" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY echo "
" >> $GITHUB_STEP_SUMMARY