fix: quote LuaRocks command arguments #4

Merged
barrettruth merged 3 commits from harden/shell-command-args into main 2026-05-04 02:13:23 +00:00
Owner

Problem
The publisher builds LuaRocks and shell commands by concatenating dynamic inputs. That is too fragile for a reusable public action because repository names, paths, verification servers, and extra LuaRocks args should be treated as argv values instead of shell text.

Solution
Add central shell argument quoting helpers, build LuaRocks commands from argv-style lists, keep LUAROCKS_API_KEY expanded from the environment without printing its value, use temporary files for command capture, and document the newline-separated extra_luarocks_args contract.

Verification

  • nix develop --accept-flake-config .#ci --command just ci
Problem The publisher builds LuaRocks and shell commands by concatenating dynamic inputs. That is too fragile for a reusable public action because repository names, paths, verification servers, and extra LuaRocks args should be treated as argv values instead of shell text. Solution Add central shell argument quoting helpers, build LuaRocks commands from argv-style lists, keep LUAROCKS_API_KEY expanded from the environment without printing its value, use temporary files for command capture, and document the newline-separated extra_luarocks_args contract. Verification - nix develop --accept-flake-config .#ci --command just ci
barrettruth changed target branch from fix/api-key-only-for-upload to main 2026-05-04 01:57:41 +00:00
barrettruth force-pushed harden/shell-command-args from b0f529a00e to 07ae4c4e19
Some checks failed
quality / Lint (pull_request) Successful in 5s
quality / Format (pull_request) Successful in 7s
quality / Test (pull_request) Failing after 5s
quality / Build aarch64 (pull_request) Successful in 7s
2026-05-04 01:58:09 +00:00
Compare
barrettruth force-pushed harden/shell-command-args from 07ae4c4e19
Some checks failed
quality / Lint (pull_request) Successful in 5s
quality / Format (pull_request) Successful in 7s
quality / Test (pull_request) Failing after 5s
quality / Build aarch64 (pull_request) Successful in 7s
to 5014cb887f
All checks were successful
quality / Lint (pull_request) Successful in 5s
quality / Format (pull_request) Successful in 8s
quality / Test (pull_request) Successful in 8s
quality / Build aarch64 (pull_request) Successful in 6s
2026-05-04 01:59:34 +00:00
Compare
barrettruth deleted branch harden/shell-command-args 2026-05-04 02:13:23 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/luarocks-tag-release-forgejo!4
No description provided.