Skip to content

Provide current process environment to sudo#10

Open
k3wio wants to merge 1 commit into
browser-actions:masterfrom
k3wio:sudo-env
Open

Provide current process environment to sudo#10
k3wio wants to merge 1 commit into
browser-actions:masterfrom
k3wio:sudo-env

Conversation

@k3wio
Copy link
Copy Markdown

@k3wio k3wio commented May 20, 2026

When env is provided to sudo via exec, ONLY the contents of env are used. This results in the PATH variable being empty, and apt-get cannot be found. This can be mitigated by sudoers setting secure_path, but this is not always possible. This specifically occurs on self-hosted runners. See browser-actions/setup-chrome#597 for more information.

When env is provided to sudo via exec, ONLY the contents of env are used. This results in the PATH variable being empty, and apt-get cannot be found. This can be mitigated by sudoers setting secure_path, but this is not always possible. This specifically occurs on self-hosted runners. See browser-actions/setup-chrome#597 for more information.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant