-
Notifications
You must be signed in to change notification settings - Fork 723
fix(setup): create .ralphrc with consistent tool permissions #137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 Critical Issue on line in
-PROJECT_NAME=${1:-"my-project"}
+PROJECT_NAME=${1:-"my-project"}
+
+# Validate PROJECT_NAME to prevent command injection when .ralphrc is sourced
+if [[ ! "$PROJECT_NAME" =~ ^[a-zA-Z0-9_-]+$ ]]; then
+ echo "❌ Error: PROJECT_NAME must contain only alphanumeric characters, hyphens, and underscores."
+ exit 1
+fi
|
Uh oh!
There was an error while loading. Please reload this page.