The action unconditionally installs ko into /usr/local/bin, which requires root/sudo privileges. On self-hosted runners where the runner user does not have sudo access, the action fails with:
tar: ko: Cannot open: Permission denied
tar: Exiting with failure status due to previous errors
Error: Process completed with exit code 2.
Setting use-sudo: true does not help either, as it prompts for a password interactively, which is not possible in a CI environment.
sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
sudo: a password is required
setup-ko version: v0.9
The action unconditionally installs ko into /usr/local/bin, which requires root/sudo privileges. On self-hosted runners where the runner user does not have sudo access, the action fails with:
Setting use-sudo: true does not help either, as it prompts for a password interactively, which is not possible in a CI environment.
setup-ko version: v0.9