Closed
- Parse --rootless flag (plus any flags before VERSION) with a full arg scan
instead of ${@:2} so --rootless works in any argument position
- Override INSTALL_DIR to ${HOME}/.local/bin in rootless mode
- Add maybe_sudo() wrapper that skips sudo when ROOTLESS=true
- Add preflight check for writable install directory in rootless mode
- Replace all sudo calls (chown, find, install, tar, chmod) with maybe_sudo
- Add GITHUB_PATH export after fresh-download install in rootless mode
- Use direct binary path for verification in rootless mode
Add install_copilot_cli_test.sh with 10 tests covering:
- Flag parsing in all argument positions
- INSTALL_DIR override for rootless/non-rootless modes
- GITHUB_PATH export and missing-GITHUB_PATH warning
- maybe_sudo behavior in both modes
Update docs to document --rootless and remove the
'allowPrivilegeEscalation: false is not supported' known limitation
Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Explore rootless Copilot CLI installation for ARC/DinD runners
feat: add --rootless flag to install_copilot_cli.sh for ARC/DinD runners
lpcox marked this pull request as ready for review
July 16, 2026 16:57Copilot AI review requested due to automatic review settings
July 16, 2026 16:57Closed
Closed
Closed
…ess-cli-installation Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
…ess-cli-installation # Conflicts: # actions/setup/sh/install_copilot_cli.sh Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
Closed
lpcox
mentioned this pull request
Merged
lpcox deleted the copilot/explore-rootless-cli-installation branch
July 19, 2026 20:26This was referenced
Jul 19, 2026Closed
Merged