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:
- Use kishaningithub/setup-python-amazon-linux@v1 in a workflow.
- Run the workflow on a self-hosted Amazon Linux runner.
- 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.
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:
Error Log
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.