Title: Permission denied when creating symlinks on macOS self-hosted runners · Issue #1301 · actions/setup-python · GitHub
Open Graph Title: Permission denied when creating symlinks on macOS self-hosted runners · Issue #1301 · actions/setup-python
X Title: Permission denied when creating symlinks on macOS self-hosted runners · Issue #1301 · actions/setup-python
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 s...
Open Graph 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 /...
X 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 /...
Opengraph URL: https://github.com/actions/setup-python/issues/1301
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Permission denied when creating symlinks on macOS self-hosted runners","articleBody":"\u003c!--- Please direct any generic questions related to actions to our support community forum at https://github.community/c/code-to-cloud/github-actions/41 --->\n\u003c!--- Before opening up a new bug report, please make sure to check for similar existing issues -->\n\n**Description:**\n### Problem\n`setup-python` fails on self-hosted macOS EC2 runners with:\n```\nError: ln: python314: Permission denied\n```\n\nThe `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.\n\n**Action version:**\nv6\n\n**Platform:**\n- [ ] Ubuntu\n- [x] macOS\n- [ ] Windows\n\n**Runner type:**\n- [ ] Hosted\n- [x] Self-hosted\n\n**Tools version:**\n\u003c!--- Please list all of the affected Python versions (`3.8.2`, etc.)-->\nAny\n\n**Repro steps:** \nMake a deployment on a MacOS instance where the runner is running as a standard user with sudo permission.\n\n**Expected behavior:**\nThe installation process creates symbolic links without failures.\n\n**Actual behavior:**\n\u003cimg width=\"1197\" height=\"547\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/b9a4b698-0d3a-4789-a8dc-9d160af562c5\" />\n\n**Fix:**\nCan be addressed by this PR: https://github.com/actions/python-versions/pull/384","author":{"url":"https://github.com/AttilaT","@type":"Person","name":"AttilaT"},"datePublished":"2026-04-02T11:53:18Z","url":"https://github.com/actions/setup-python/issues/1301"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:7e3aa04c-fa97-a6f6-d555-02eb32e5485b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D0CE:2E7DFB:E41342:12A5289:6B027C12 |
| html-safe-nonce | fa579b58fdf540fc26272c7e0046faa17c9c6569127f4a505159e1b0fbec4555 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMENFOjJFN0RGQjpFNDEzNDI6MTJBNTI4OTo2QjAyN0MxMiIsInZpc2l0b3JfaWQiOiIyMjA1MzQyMDA4OTM4MjMyODUwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7f2e1edbe4b32569b60b648fa2e94d00a9a5fcae90e77842ce506c43fd4ac1c3 |
| hovercard-subject-tag | issue:4194076555 |
| github-keyboard-shortcuts | repository,issues,actions,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/actions/setup-python/1301/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cf65cfa56a4b1f4f749f55a4a04296a28d998c2edff5feac529cf856df074cf4/actions/setup-python/issues/1301 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cf65cfa56a4b1f4f749f55a4a04296a28d998c2edff5feac529cf856df074cf4/actions/setup-python/issues/1301 |
| og:image:alt | 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 /... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | AttilaT |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/actions/setup-python git https://github.com/actions/setup-python.git |
| octolytics-dimension-user_id | 44036562 |
| octolytics-dimension-user_login | actions |
| octolytics-dimension-repository_id | 192625525 |
| octolytics-dimension-repository_nwo | actions/setup-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 192625525 |
| octolytics-dimension-repository_network_root_nwo | actions/setup-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width