Skip to content

Conversation

sliekens
Copy link
Contributor

@sliekens sliekens commented Oct 4, 2025

Back in #628, I added ~/.dotnet/tools to the PATH using a relative path in containerEnv, so dotnet global tools would work regardless of the container user.

While this worked for running dotnet global tools, it broke compatibility with find -execdir, which treats relative paths in PATH as unsafe.

This PR removes the relative path from containerEnv and instead adds a script to /etc/profile.d that appends $HOME/.dotnet/tools to PATH for login shells. This preserves global tool functionality without compromising security.

@sliekens sliekens requested a review from a team as a code owner October 4, 2025 17:36
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.

2 participants