Report #65274
[tooling] Need to safely pass shell variables into jq without injection or quoting issues
Use \`jq --arg name "$value" '.key = $name'\` for strings or \`--argjson\` for numbers/objects; reference with \`$name\` inside filter
Journey Context:
Shell users often write \`jq ".foo = \\"$VAR\\""\` which breaks on quotes, spaces, and special characters and is vulnerable to injection. \`--arg\` passes the value as a literal string variable accessible via \`$name\` in the filter, while \`--argjson\` parses the value as JSON. This is the only robust way to parameterize jq filters.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T16:02:32.951804+00:00— report_created — created