diff --git a/src/Runner.Worker/Container/ContainerHooks/ContainerHookManager.cs b/src/Runner.Worker/Container/ContainerHooks/ContainerHookManager.cs index d38058e07..cf4bdfa1b 100644 --- a/src/Runner.Worker/Container/ContainerHooks/ContainerHookManager.cs +++ b/src/Runner.Worker/Container/ContainerHooks/ContainerHookManager.cs @@ -101,7 +101,7 @@ namespace GitHub.Runner.Worker.Container.ContainerHooks EntryPointArgs = entryPointArgs.Split(' ').Select(arg => arg.Trim()), EntryPoint = entryPoint, EnvironmentVariables = environmentVariables, - PrependPath = prependPath, + PrependPath = context.Global.PrependPath.Reverse(), WorkingDirectory = workingDirectory, }, State = context.Global.ContainerHookState diff --git a/src/Runner.Worker/Container/ContainerHooks/HookInput.cs b/src/Runner.Worker/Container/ContainerHooks/HookInput.cs index 41d897c55..823a3a882 100644 --- a/src/Runner.Worker/Container/ContainerHooks/HookInput.cs +++ b/src/Runner.Worker/Container/ContainerHooks/HookInput.cs @@ -44,7 +44,7 @@ namespace GitHub.Runner.Worker.Container.ContainerHooks public IEnumerable EntryPointArgs { get; set; } public string EntryPoint { get; set; } public IDictionary EnvironmentVariables { get; set; } - public string PrependPath { get; set; } + public IEnumerable PrependPath { get; set; } public string WorkingDirectory { get; set; } public bool IsRequireAlpineInResponse() => false; }