Make automation scripts non-interactive and CI-friendly#7
Open
Make automation scripts non-interactive and CI-friendly#7
Conversation
…tible - Add CI/non-interactive mode detection (CI=true, NONINTERACTIVE=1) - Add -y/--yes flag support to all three scripts - Add cross-platform install_pkg helper using brew/apt-get - Make claude installer download safe (no curl|bash in CI) - Add --promise and --max-iterations flags to start-ralph.sh - Provide sensible defaults for non-interactive usage - Add final verification with proper exit codes - Best-effort package installation with warnings instead of failures Files updated: - automation/scripts/setup-claude-code.sh - automation/scripts/setup-ralph-project.sh - automation/start-ralph.sh All scripts tested for syntax and functionality. Co-authored-by: flatfinderai-cyber <252397696+flatfinderai-cyber@users.noreply.github.com>
- Add documentation to install_pkg explaining best-effort design - Fix misleading "Essential tools installed" message - Fix sed command in start-ralph.sh to use single expression - All changes maintain non-interactive CI compatibility Co-authored-by: flatfinderai-cyber <252397696+flatfinderai-cyber@users.noreply.github.com>
- Check for sudo availability before using it in apt-get - Fall back to non-sudo installation in containers - Add security notes about external installer trust - Document that users should verify trust in installer sources - Recommend version pinning for security-critical deployments Co-authored-by: flatfinderai-cyber <252397696+flatfinderai-cyber@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update automation scripts for non-interactive CI use
Make automation scripts non-interactive and CI-friendly
Jan 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CI environments hang on interactive prompts and fail when Homebrew is unavailable. These changes make automation scripts work in both interactive local use and non-interactive CI (Ubuntu runners).
Changes
Non-interactive mode support
CI=trueorNONINTERACTIVE=1-y/--yesflag to skip all promptsCross-platform package installation
install_pkg()helper: uses Homebrew on macOS, apt-get on Linuxfd→fd-find)Safe external installer execution
/tmpbefore execution (no directcurl | bash)CLI improvements
start-ralph.sh: Add--promise PROMISEand--max-iterations Nflags with defaults-y/--yessupportUsage
Files Changed
automation/scripts/setup-claude-code.sh(186 lines)automation/scripts/setup-ralph-project.sh(62 lines)automation/start-ralph.sh(85 lines)Executable permissions preserved. All scripts tested in both interactive and non-interactive modes on Linux.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
esm.ubuntu.com/usr/lib/apt/methods/https /usr/lib/apt/methods/https(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
This pull request was created from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.