Skip to content

Support execution on self-hosted without sudo #18188

@dhrapson

Description

@dhrapson

When executing gh aw compile Workflows on self-hosted GitHub Runners fails currently on the Install GitHub Copilot CLI task of the agent Job, if the Runners do not permit escalation to root user.
This is because the script at https://github.com/github/gh-aw/blob/main/actions/setup/sh/install_copilot_cli.sh blindly runs sudo commands without checking existing directory permissions or user, and copies binaries into root-owned directories such as /usr/local/bin.

Please change the GH AW workflow compilation to support execution on a self-hosted Runner that does not permit sudo commands e.g. Actions Runner Controller (ARC) with allowPrivilegeEscalation: false

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions