"EACCES: permission denied" if additional executable with same name appears on PATH
when using @actions/exec
#1925
Labels
bug
Something isn't working
I use
@actions/exec
in my setup-wsl GitHub Actions action to do various tool runs.One of the tools that is run is
wsl
.To use WSLv2 on
windows-2022
currently, you have to do awsl --update
first.To use any version of WSLv2 on
windows-2025
currently, you have to do awsl --install --no-distribution
first.Both of these commands add an addtional
wsl.exe
link toC:\Users\runneradmin\AppData\Local\Microsoft\WindowsApps
- which is on thePATH
- that was not there before.If you now use
exec()
to run awsl
command, you always getspamming the build output.
To reproduce, first do a
wsl --update
throughexec()
, then awsl --status
throughexec()
on awindows-2022
image that does not yet have actions/runner-images#10563 done.The text was updated successfully, but these errors were encountered: