Describe the bug
If passing the HOME environment variable to a container configuration,
it will get ignored and set to /github/home anyway as per
|
container.ContainerEnvironmentVariables["HOME"] = container.TranslateToContainerPath(tempHomeDirectory); |
To Reproduce
A workflow with
jobs:
main:
runs-on: ubuntu-latest
container:
image: 'rokmoln/sf-ubuntu-bionic-common:0.2.80'
options: '--user sf:sf' # this user's home is /home/sf
env:
HOME: /home/sf # tried to change HOME from /github/home to /home/sf. doesn't work
steps:
- shell: bash
run: |
echo $HOME
will echo /github/home instead of /home/sf.
Expected behavior
Expected HOME to be left as is, as sf user's HOME,
or at the very least to be allowed to enforce it via the env dictionary.
Runner Version and Platform
2.274.2
What's not working?
N/A
Job Log Output
N/A
Runner and Worker's Diagnostic Logs
N/A
Describe the bug
If passing the
HOMEenvironment variable to a container configuration,it will get ignored and set to
/github/homeanyway as perrunner/src/Runner.Worker/ContainerOperationProvider.cs
Line 258 in 4e85b8f
To Reproduce
A workflow with
will echo
/github/homeinstead of/home/sf.Expected behavior
Expected HOME to be left as is, as
sfuser's HOME,or at the very least to be allowed to enforce it via the
envdictionary.Runner Version and Platform
2.274.2
What's not working?
N/A
Job Log Output
N/A
Runner and Worker's Diagnostic Logs
N/A