René's URL Explorer Experiment


Title: `setup-python` pip upgrade triggers root user warning on self-hosted runners · Issue #1295 · actions/setup-python · GitHub

Open Graph Title: `setup-python` pip upgrade triggers root user warning on self-hosted runners · Issue #1295 · actions/setup-python

X Title: `setup-python` pip upgrade triggers root user warning on self-hosted runners · Issue #1295 · actions/setup-python

Description: Problem On root-user self-hosted runners (e.g. Hetzner Cloud), setup-python internally upgrades pip against the system Python outside any venv: // src/find-python.ts — installPip() `${pythonLocation}/python -m pip install --upgrade pip -...

Open Graph Description: Problem On root-user self-hosted runners (e.g. Hetzner Cloud), setup-python internally upgrades pip against the system Python outside any venv: // src/find-python.ts — installPip() `${pythonLocatio...

X Description: Problem On root-user self-hosted runners (e.g. Hetzner Cloud), setup-python internally upgrades pip against the system Python outside any venv: // src/find-python.ts — installPip() `${pythonLocatio...

Opengraph URL: https://github.com/actions/setup-python/issues/1295

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`setup-python` pip upgrade triggers root user warning on self-hosted runners","articleBody":"## Problem\n\nOn root-user self-hosted runners (e.g. Hetzner Cloud), `setup-python` internally upgrades pip against the **system Python** outside any venv:\n\n```typescript\n// src/find-python.ts — installPip()\n`${pythonLocation}/python -m pip install --upgrade pip --disable-pip-version-check`\n```\n\nThis produces on every run:\n\n```\nWARNING: Running pip as the 'root' user can result in broken permissions...\nUse the --root-user-action option if you know what you are doing.\n```\n\nThe warning **cannot be suppressed** from the workflow side because `setup-python` spawns the pip subprocess via a Node.js child process with a controlled environment that does not reliably inherit the job-level `PIP_ROOT_USER_ACTION` env var or `/etc/pip.conf`.\n\n## Proposed Fix\n\nAdd `--root-user-action=ignore` to the pip upgrade call in `src/find-python.ts`:\n\n```typescript\nawait exec.exec(`${pythonLocation}/python`, [\n  '-m', 'pip', 'install', '--upgrade', 'pip',\n  '--root-user-action=ignore',\n  '--disable-pip-version-check',\n  '--no-warn-script-location'\n]);\n```\n\nThis is a **non-breaking, no-op change** on non-root runners.\n\n## Reproduction\n\n```yaml\njobs:\n  test:\n    runs-on: self-hosted  # root user (e.g. Hetzner Cloud ephemeral runner)\n    steps:\n      - uses: actions/setup-python@v6\n        with:\n          python-version: '3.12'\n```\n\n**Log output:**\n```\nUpgrading pip...\nWARNING: Running pip as the 'root' user...\nSuccessfully installed pip-26.0.1\n```\n\n## Environment\n\n| | |\n|---|---|\n| `setup-python` | `v6` |\n| Runner OS | Ubuntu 24.04 |\n| Runner user | `root` |\n| Python version | `3.12` |\n\n","author":{"url":"https://github.com/xgboosted","@type":"Person","name":"xgboosted"},"datePublished":"2026-03-21T13:19:14Z","url":"https://github.com/actions/setup-python/issues/1295"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:345a61a3-3e16-2ab8-fa2b-3156029865e4
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8540:383F61:83C947:AF1D71:6AF847CF
html-safe-nonce67be8acc344169aa656d8b899dd94d7b1434b355d5527eacf84b29a3653b11e3
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTQwOjM4M0Y2MTo4M0M5NDc6QUYxRDcxOjZBRjg0N0NGIiwidmlzaXRvcl9pZCI6IjE1OTE2ODU3MzE3NDkyMTgyNTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmaceb0d79b26a7dce393eb63317a93254b3bbc41d4974f3a7eb3b71373931784ad7
hovercard-subject-tagissue:4112515127
github-keyboard-shortcutsrepository,issues,actions,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/actions/setup-python/1295/issue_layout
twitter:imagehttps://opengraph.githubassets.com/d7dd84ff17aced2d3071d9863fcae0dba9f7a6dc31334b1b0c83a44627e6bd9e/actions/setup-python/issues/1295
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/d7dd84ff17aced2d3071d9863fcae0dba9f7a6dc31334b1b0c83a44627e6bd9e/actions/setup-python/issues/1295
og:image:altProblem On root-user self-hosted runners (e.g. Hetzner Cloud), setup-python internally upgrades pip against the system Python outside any venv: // src/find-python.ts — installPip() `${pythonLocatio...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamexgboosted
hostnamegithub.com
expected-hostnamegithub.com
None5713ecd83001b2f55c3509fb7a292bf7d66d0f167c7ae87a9f7eaec5a52bf8db
turbo-cache-controlno-preview
go-importgithub.com/actions/setup-python git https://github.com/actions/setup-python.git
octolytics-dimension-user_id44036562
octolytics-dimension-user_loginactions
octolytics-dimension-repository_id192625525
octolytics-dimension-repository_nwoactions/setup-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id192625525
octolytics-dimension-repository_network_root_nwoactions/setup-python
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release653be32ff5c755082a4db662491bfbbcfc9112c1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/actions/setup-python/issues/1295#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-python%2Fissues%2F1295
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-python%2Fissues%2F1295
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=actions%2Fsetup-python
Reloadhttps://github.com/actions/setup-python/issues/1295
Reloadhttps://github.com/actions/setup-python/issues/1295
Reloadhttps://github.com/actions/setup-python/issues/1295
actionshttps://github.com/actions
setup-pythonhttps://github.com/actions/setup-python
Codehttps://github.com/actions/setup-python
Issues37 (37)https://github.com/actions/setup-python/issues
Pull requests24 (24)https://github.com/actions/setup-python/pulls
Actionshttps://github.com/actions/setup-python/actions
Projectshttps://github.com/actions/setup-python/projects
Security and qualityhttps://github.com/actions/setup-python/security
Insightshttps://github.com/actions/setup-python/pulse
https://github.com/actions/setup-python
New issuehttps://github.com/login?return_to=https://github.com/actions/setup-python/issues/1295
New issuehttps://github.com/login?return_to=https://github.com/actions/setup-python/issues/1295
setup-python pip upgrade triggers root user warning on self-hosted runnershttps://github.com/actions/setup-python/issues/1295#top
https://github.com/v-priyagupta108
bugSomething isn't workinghttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com/xgboosted
xgboostedhttps://github.com/xgboosted
on Mar 21, 2026https://github.com/actions/setup-python/issues/1295#issue-4112515127
xgboostedhttps://github.com/xgboosted
bugSomething isn't workinghttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22bug%22
needs triagehttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22needs%20triage%22
on Mar 21, 2026https://github.com/actions/setup-python/issues/1295#event-23776832317
v-mahabaleshwarshttps://github.com/v-mahabaleshwars
needs triagehttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22needs%20triage%22
on Mar 23, 2026https://github.com/actions/setup-python/issues/1295#event-23804792735
https://github.com/v-mahabaleshwars
v-mahabaleshwarshttps://github.com/v-mahabaleshwars
on Mar 23, 2026https://github.com/actions/setup-python/issues/1295#issuecomment-4108848856
@xgboostedhttps://github.com/xgboosted
v-mahabaleshwarshttps://github.com/v-mahabaleshwars
on Mar 24, 2026https://github.com/actions/setup-python/issues/1295#event-23836052609
v-priyagupta108https://github.com/v-priyagupta108
v-priyagupta108https://github.com/v-priyagupta108
v-mahabaleshwarshttps://github.com/v-mahabaleshwars
on Apr 1, 2026https://github.com/actions/setup-python/issues/1295#event-24097148215
https://github.com/v-priyagupta108
v-priyagupta108https://github.com/v-priyagupta108
on Apr 8, 2026https://github.com/actions/setup-python/issues/1295#issuecomment-4204559755
@xgboostedhttps://github.com/xgboosted
pip-version: inputhttps://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#using-the-pip-version-input
ensurepip/__init__.py#L98-L107https://github.com/python/cpython/blob/main/Lib/ensurepip/__init__.py#L98-L107
https://github.com/leofang
leofanghttps://github.com/leofang
on Apr 8, 2026https://github.com/actions/setup-python/issues/1295#issuecomment-4210079488
NVIDIA/cuda-python#1879 (comment)https://github.com/NVIDIA/cuda-python/pull/1879#issuecomment-4203753040
actions/python-versions#369https://github.com/actions/python-versions/pull/369
https://github.com/xgboosted
xgboostedhttps://github.com/xgboosted
on Apr 12, 2026https://github.com/actions/setup-python/issues/1295#issuecomment-4231158773
@leofanghttps://github.com/leofang
actions/python-versions#369https://github.com/actions/python-versions/pull/369
https://github.com/v-priyagupta108
v-priyagupta108https://github.com/v-priyagupta108
on May 13, 2026https://github.com/actions/setup-python/issues/1295#issuecomment-4439568695
@xgboostedhttps://github.com/xgboosted
@leofanghttps://github.com/leofang
actions/python-versions#392https://github.com/actions/python-versions/pull/392
https://github.com/xgboosted
xgboostedhttps://github.com/xgboosted
on May 14, 2026https://github.com/actions/setup-python/issues/1295#issuecomment-4450997901
https://github.com/v-priyagupta108
v-priyagupta108https://github.com/v-priyagupta108
on May 20, 2026https://github.com/actions/setup-python/issues/1295#issuecomment-4497650264
@xgboostedhttps://github.com/xgboosted
https://github.com/xgboosted
xgboostedhttps://github.com/xgboosted
on May 21, 2026https://github.com/actions/setup-python/issues/1295#issuecomment-4506057400
https://github.com/v-priyagupta108
v-priyagupta108https://github.com/v-priyagupta108
on May 28, 2026https://github.com/actions/setup-python/issues/1295#issuecomment-4562383346
actions/python-versionshttps://github.com/actions/python-versions
PR #392https://github.com/actions/python-versions/pull/392
v-priyagupta108https://github.com/v-priyagupta108
completedhttps://github.com/actions/setup-python/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on May 28, 2026https://github.com/actions/setup-python/issues/1295#event-26054375202
Sign up for freehttps://github.com/signup?return_to=https://github.com/actions/setup-python/issues/1295
Sign in to commenthttps://github.com/login?return_to=https://github.com/actions/setup-python/issues/1295
v-priyagupta108https://github.com/v-priyagupta108
bugSomething isn't workinghttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22bug%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.