-
Notifications
You must be signed in to change notification settings - Fork 709
Permission denied when creating symlinks on macOS self-hosted runners #1301
Copy link
Copy link
Open
Labels
Description
Description:
Problem
setup-python fails on self-hosted macOS EC2 runners with:
Error: ln: python314: Permission denied
The setup.sh installer script uses sudo to install the Python framework into /Library/Frameworks/ (line 50), but the subsequent symlink creation inside that root-owned directory runs without sudo, causing a permission error on runners where the CI user is not an admin.
Action version:
v6
Platform:
- Ubuntu
- macOS
- Windows
Runner type:
- Hosted
- Self-hosted
Tools version:
Any
Repro steps:
Make a deployment on a MacOS instance where the runner is running as a standard user with sudo permission.
Expected behavior:
The installation process creates symbolic links without failures.
Fix:
Can be addressed by this PR: actions/python-versions#384
Reactions are currently unavailable
