diff --git a/.github/actions/setup-env/action.yml b/.github/actions/setup-env/action.yml index fa316cf..8d4efcd 100644 --- a/.github/actions/setup-env/action.yml +++ b/.github/actions/setup-env/action.yml @@ -14,8 +14,12 @@ runs: run: | echo "TESTING=true" > .env - # Parse JSON secrets and write to .env - echo '${{ inputs.secrets }}' | jq -r 'to_entries[] | "\(.key)=\(.value)"' >> .env + # Use printf to safely handle JSON with special characters + printf '%s' '${{ inputs.secrets }}' | jq -r ' + to_entries[] | + select(.key != "github_token") | + "\(.key)=\(.value)" + ' >> .env echo "✅ Generated .env with $(wc -l < .env) environment variables"