Skip to content

Fails on self-hosted runners without sudo access due to hardcoded install path #58

Description

@KurosawaAngel

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions