You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You may have to install sudo to make the action work.
Can you share an example GitHub action config where this would be necessary? I'm guessing this is only if your own Docker image doesn't have sudo OR if you run your own runners(?).
Docker images without sudo are one issue. You can quickly check this with docker run --rm -ti ubuntu:22.04 bash -c "sudo apt update". This could be worked around by installing sudo in the image first, but it would still be nicer if you do not have to do this.
The main problem is that you cannot pass options to sudo, such as -E or --preserve-env.
Description
Inside Docker containers, processes usually run as root. The action uses sudo to install packages via apt. This has two downsides:
sudo
to make the action work.-E
environment variables are not forwarded.Completion Criteria
The action should provide two options:
-E
.Testing Notes / Suggestions
Add an additional test where the action runs as root without
sudo
being installed.The text was updated successfully, but these errors were encountered: