Closed lukehsiao closed 3 weeks ago
I guess due to the permissions granted to the user, they can't move binaries to /usr/local/bin. We don't want to use sudo if it's possible, so it would be better to stop installing to /usr/local/bin and install to ~/.install-action/bin as we already do on Windows.
Fixed in 2.40.0.
GitHub actions publishes their own images which are used by default by the
actions-runner-controller
.However, these images appear to differ from when we run actions with GitHub-hosted runners in that the taiki-e/install-action fails due to lack of permissions.
It seems like the
main.sh
already accounts for potentially needingsudo
with_sudo
, so I'm not exactly sure what the issue is here. Is there perhaps a missing sudo check?This can be semi-replicated interactively with the following
Perhaps these
mv
commands should have a_sudo
prefix?https://github.com/taiki-e/install-action/blob/0ed897e40fe9188f681f7c6f07cc2128813ceb40/main.sh#L148-L172