You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 withoutsudo, 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.
Description:
Problem
setup-pythonfails on self-hosted macOS EC2 runners with:The
setup.shinstaller script usessudoto install the Python framework into/Library/Frameworks/(line 50), but the subsequent symlink creation inside that root-owned directory runs withoutsudo, causing a permission error on runners where the CI user is not an admin.Action version:
v6
Platform:
Runner type:
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.
Actual behavior:

Fix:
Can be addressed by this PR: actions/python-versions#384