Skip to content

fix: Build the Action's argument list with if blocks - #8

Merged
korya merged 1 commit into
masterfrom
fix-action-shell-robustness
Sep 2, 2026
Merged

fix: Build the Action's argument list with if blocks#8
korya merged 1 commit into
masterfrom
fix-action-shell-robustness

Conversation

@korya

@korya korya commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Releases 1.0.3.

action.yml built its flags with [ cond ] && args+=(...). That returns non-zero when the condition is false, and under bash -e a non-zero last line fails the step. It has been safe only by accident of ordering, since a node command follows it — adding a flag at the end would have broken the Action for every consumer. The release workflow hit exactly this defect class on its first run, which is what prompted the audit.

Conditions are now if blocks. No diagnostic changes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01RoMv1uCaJQPs44rFX5XWEm

`[ cond ] && args+=(...)` returns non-zero when the condition is false,
which fails the whole step under bash -e if it is ever the last line.
The Action survived only because a node command followed it. Same defect
class the release workflow hit on its first run.

Releases 1.0.3.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RoMv1uCaJQPs44rFX5XWEm
@korya
korya merged commit 5f6f626 into master Sep 2, 2026
1 check passed
@korya
korya deleted the fix-action-shell-robustness branch September 2, 2026 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant