Copilot · GitHub

Copilot AI linked an issue

Jul 16, 2026

that may be closed by this pull request

Closed

Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
- 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

Jul 16, 2026

@lpcox

lpcox marked this pull request as ready for review

July 16, 2026 16:57

Copilot AI review requested due to automatic review settings

July 16, 2026 16:57

Closed

Closed

Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>

@github-actions

Closed

Co-authored-by: gh-aw-bot <259018956+gh-aw-bot@users.noreply.github.com>
…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 lpcox mentioned this pull request

Jul 19, 2026

Merged

@lpcox

@lpcox

lpcox deleted the copilot/explore-rootless-cli-installation branch

July 19, 2026 20:26

This was referenced

Jul 19, 2026

Closed

Merged

Read the original on github.com ↗