diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 44fd050..24b0c09 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -184,12 +184,17 @@ jobs: shell: bash run: >- AWS_CFN_PARAMS=$( - cat cfn-parameters.json | - jq -r ' - to_entries | - map("\(.key)=\(.value|tostring)") | - join(" ") - ' + jq \ + -n \ + --argjson secrets "$GHA_SECRETS" \ + --argjson env "$GHA_ENV" \ + -f cfn-parameters.json | + jq \ + -r ' + to_entries | + map("\(.key)=\(.value|tostring)") | + join(" ") + ' ) && echo "AWS_CFN_PARAMS=--parameter-overrides ${AWS_CFN_PARAMS}" >> $GITHUB_ENV