You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* fix(updater): Prevent script injection vulnerabilities
Add input validation and use environment variables instead of direct
interpolation to prevent potential script injection attacks through
user-controlled workflow inputs.
- Add validate-inputs job to check for safe characters in inputs.name and inputs.path
- Move all environment variable declarations to job level for better organization
- Replace direct interpolation in PR titles and PowerShell scripts with env variables
- Ensure all user inputs are properly sanitized before use
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* refactor: Split input validation into separate steps
Split the single validation step into two distinct steps for better
clarity and more granular error reporting:
- Validate dependency name
- Validate dependency path
Each step now also logs a success message when validation passes.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* fix: Use [:space:] character class for spaces in regex
Fix the regex pattern to properly match spaces in dependency names
by using the [:space:] POSIX character class instead of a literal
space in the regex pattern.
This fixes CI failures for test cases that include spaces in the
dependency name like "Workflow args test script".
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* fix: Correct regex character class syntax for hyphens
Move hyphens to the end of character classes in regex patterns to
ensure they are treated as literal characters rather than ranges.
This fixes validation failures for inputs containing hyphens like
"WORKFLOW-TEST-DEPENDENCY-DO-NOT-MERGE".
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* refactor: Use PowerShell for input validation steps
Convert the validation steps from Bash to PowerShell for consistency
with the rest of the workflow which uses PowerShell as its default shell.
- Use PowerShell's -notmatch operator instead of Bash regex
- Use Write-Output instead of echo
- Maintain the same validation logic and error messages
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* docs: Add changelog entry for script injection security fix
Add entry to CHANGELOG.md documenting the security improvements
to prevent script injection vulnerabilities in the updater workflow.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <[email protected]>
* Apply suggestion from @jpnurmi
Co-authored-by: J-P Nurmi <[email protected]>
* Apply suggestion from @vaind
* Apply suggestion from @vaind
* Apply suggestion from @vaind
* Apply suggestion from @vaind
---------
Co-authored-by: Claude <[email protected]>
Co-authored-by: J-P Nurmi <[email protected]>
0 commit comments