fix: avoid --argjson by piping stack info into jq #22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/cicd_improvements"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Root cause:
ash(Alpine's sh) doesn't propagateset -einto command substitutions, so whenjq '.Env // []'received invalid input and produced empty output,$STACK_ENVsilently became an empty string — which is not valid JSON for--argjson.Fix: removed
--argjsonentirely. Instead of storing the Env array in a shell variable and passing it back to jq, we now pipe$STACK_INFOas stdin directly into jq and extract.Envfrom within jq itself:No shell variable ever holds a raw JSON fragment that needs to be re-parsed.
Test plan
🤖 Generated with Claude Code