Skip to content

bug: Action fails on yum install due to sudo password requirement #31

@salmankadaya

Description

@salmankadaya

The setup-python-amazon-linux action fails during the dependency installation step. Specifically, the command sudo yum install -y tar gzip which prompts for a password, causing the process to hang and eventually fail with the error: sudo: a terminal is required to read the password.

To Reproduce
Steps to reproduce the behavior:

  1. Use kishaningithub/setup-python-amazon-linux@v1 in a workflow.
  2. Run the workflow on a self-hosted Amazon Linux runner.
  3. See error in the "Run sudo yum install..." step.

Error Log

Run sudo yum install -y tar gzip which
  sudo yum install -y tar gzip which
  shell: /usr/bin/bash --noprofile --norc -e -o pipefail {0}

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

For security reasons, the password you type will not be visible.

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
Error: Process completed with exit code 1.

Expected behavior:

The action should be able to install necessary dependencies (tar, gzip, which) without requiring interactive password entry, or provide a way to bypass this check if dependencies are already present.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions