loop-engineering icon indicating copy to clipboard operation
loop-engineering copied to clipboard

Harden loop-action command invocation (safe quoting)

Open cobusgreyling opened this issue 4 months ago • 2 comments

Goal

Harden tools/loop-action/action.yml so inputs.command is not expanded unquoted into the shell (fragile for multi-arg / multi-line agent invocations).

Files

  • tools/loop-action/action.yml
  • tools/loop-action/README.md (document the safe usage)

Acceptance criteria

  • [ ] Sandbox and direct paths pass the command safely (e.g. write to a temp script, or use bash -lc with a properly quoted string / env var)
  • [ ] Multi-line command: | examples in examples/github-actions/*.yml still work
  • [ ] README warns against embedding untrusted input in command
  • [ ] No behavior change for the simple placeholder echo examples beyond safer invocation

Estimated time: ~45–60 minutes (tooling; still scoped)

Comment "I'll take this" to get assigned.

cobusgreyling avatar Jul 25 '26 19:07 cobusgreyling

I'll take this.

amarjaleelbanbhan avatar Jul 25 '26 22:07 amarjaleelbanbhan

Shipped in #395 (temp-script + bash -eo pipefail / quoted invocation for sandbox and direct paths). Closing as done — thanks @amarjaleelbanbhan.

cobusgreyling avatar Jul 29 '26 15:07 cobusgreyling