René's URL Explorer Experiment


Title: Forced pip update raises supply chain safety concerns (and is often useless) · Issue #1346 · actions/setup-python · GitHub

Open Graph Title: Forced pip update raises supply chain safety concerns (and is often useless) · Issue #1346 · actions/setup-python

X Title: Forced pip update raises supply chain safety concerns (and is often useless) · Issue #1346 · actions/setup-python

Description: Description: As of v6.3.0, setup-python appears to unconditionally auto-update pip, without a dependency cooldown. Even when a pip-version input is specified, setup-python seemingly updates pip to the latest version first, then installs ...

Open Graph Description: Description: As of v6.3.0, setup-python appears to unconditionally auto-update pip, without a dependency cooldown. Even when a pip-version input is specified, setup-python seemingly updates pip to ...

X Description: Description: As of v6.3.0, setup-python appears to unconditionally auto-update pip, without a dependency cooldown. Even when a pip-version input is specified, setup-python seemingly updates pip to ...

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Forced pip update raises supply chain safety concerns (and is often useless)","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 feature request, please make sure to check for similar existing issues and pull requests -->\n\n**Description:**\n\nAs of v6.3.0, `setup-python` appears to unconditionally auto-update pip, without a dependency cooldown.\nEven when a `pip-version` input is specified, `setup-python` seemingly updates pip to the latest version first, then installs the specified version.\n\nThis behavior raises supply chain safety concerns: If pip itself were subject to a supply chain attack,[^1] any callers of setup-python would be immediately affected during the attack window of opportunity.\n\nAlso, updating pip on user level seems pointless when virtual environments are used (which you should), because (AFAIK) venvs are initialized with python's bootstrap copy of pip, not site-packages pip.\nHowever, note that merely not calling setup-python's updated pip does not resolve these concerns, because an attacker might upload only an sdist of pip, which would allow for install-time execution of the hypothetical attack.\n\nTo be clear, we all hope that this scenario stays entirely hypothetical, but the point is that `setup-python` is not following safety best practices here, rsp. does not even allow the caller to do so.\n\nProposed remediation:\n- Add an option to let the caller opt out of pip auto-updating entirely (given that it is pointless when a venv is used).\n- Subject the default behavior of auto-updating pip to a dependency cooldown, ideally configurable through an input.\n  Suggested default: 3 days, like dependabot, or anything non-zero really.\n- When a `pip-version` is specified, install the given version right away without first updating to latest.\n\nNote that updating pip itself with a cooldown is complicated by the fact that pip versions before 26 do not support `--uploaded-prior-to`, `PIP_UPLOADED_PRIOR_TO` etc.\nThis can basically be worked around by updating to a pinned and hash-checked version first, then updating with cooldown.\nThe following script shows how to do this: https://github.com/pypdfium2-team/pypdfium2/blob/811faae77f8fc90bc57832bc6400c65fd9f4fbee/utils/update_pip.py\n\n**Justification:**\nSupply chain safety, see the description above.\n\n**Are you ~~willing~~ able to submit a PR?**\n\nNo, I am not a typescript programmer and not familiar with setup-python's internals.\n\n*Edit: Submitted https://github.com/actions/python-versions/pull/406 after all, a simple patch to avoid possible setup-time code execution when updating pip. This should stuff a key loophole and allow an aware caller to be unaffected, but otherwise the issue still stands.*\n\n[^1]: Hypothetical and hopefully highly unlikely, but no project is per se immune to it, and you have to acknowledge that pip would be a *very* lucrative target for a supply chain attack, so downstream precautions seem important.","author":{"url":"https://github.com/mara004","@type":"Person","name":"mara004"},"datePublished":"2026-07-27T16:21:24Z","url":"https://github.com/actions/setup-python/issues/1346"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:19f8d9b4-30f6-fd4b-57fe-4c9a427afdc2
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8D48:1F927B:27B14B1:33FA9AB:6B02619B
html-safe-noncea780686e21387f1321534655567f2aa0e1b1d88df9841eff5f692f3c34758ffc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RDQ4OjFGOTI3QjoyN0IxNEIxOjMzRkE5QUI6NkIwMjYxOUIiLCJ2aXNpdG9yX2lkIjoiNjcwNzUzMDg0NTkwNDE2MjgzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd47b0dd98fe1ef2b965e0755876c3d337af5f237d5d54492d0cf210c188bbe0d
hovercard-subject-tagissue:4990047941
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/1346/issue_layout
twitter:imagehttps://opengraph.githubassets.com/e216ca600d4b5a77407286f5c181211d62bfd9167689b7e9e481d8ceb301e62a/actions/setup-python/issues/1346
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e216ca600d4b5a77407286f5c181211d62bfd9167689b7e9e481d8ceb301e62a/actions/setup-python/issues/1346
og:image:altDescription: As of v6.3.0, setup-python appears to unconditionally auto-update pip, without a dependency cooldown. Even when a pip-version input is specified, setup-python seemingly updates pip to ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemara004
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
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
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/actions/setup-python/issues/1346#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-python%2Fissues%2F1346
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%2F1346
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/1346
Reloadhttps://github.com/actions/setup-python/issues/1346
Reloadhttps://github.com/actions/setup-python/issues/1346
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 requests22 (22)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/insights
https://github.com/actions/setup-python
New issuehttps://github.com/login?return_to=https://github.com/actions/setup-python/issues/1346
New issuehttps://github.com/login?return_to=https://github.com/actions/setup-python/issues/1346
Forced pip update raises supply chain safety concerns (and is often useless)https://github.com/actions/setup-python/issues/1346#top
feature requestNew feature or request to improve the current logichttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22feature%20request%22
https://github.com/mara004
mara004https://github.com/mara004
on Jul 27, 2026https://github.com/actions/setup-python/issues/1346#issue-4990047941
1https://github.com/actions/setup-python/issues/1346#user-content-fn-1-b82dfc7f54df92ac155f147fd2b686ff
https://github.com/pypdfium2-team/pypdfium2/blob/811faae77f8fc90bc57832bc6400c65fd9f4fbee/utils/update_pip.pyhttps://github.com/pypdfium2-team/pypdfium2/blob/811faae77f8fc90bc57832bc6400c65fd9f4fbee/utils/update_pip.py
actions/python-versions#406https://github.com/actions/python-versions/pull/406
↩https://github.com/actions/setup-python/issues/1346#user-content-fnref-1-b82dfc7f54df92ac155f147fd2b686ff
mara004https://github.com/mara004
feature requestNew feature or request to improve the current logichttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22feature%20request%22
needs triagehttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22needs%20triage%22
on Jul 27, 2026https://github.com/actions/setup-python/issues/1346#event-28549775085
https://github.com/mara004
mara004https://github.com/mara004
on Jul 27, 2026https://github.com/actions/setup-python/issues/1346#issuecomment-5093940211
@woodruffwhttps://github.com/woodruffw
#1251https://github.com/actions/setup-python/issues/1251
https://github.com/woodruffw
woodruffwhttps://github.com/woodruffw
on Jul 27, 2026https://github.com/actions/setup-python/issues/1346#issuecomment-5094144218
setup-python/src/find-python.tshttps://github.com/actions/setup-python/blob/5fda3b95a4ea91299a34e894583c3862153e4b97/src/find-python.ts#L34-L53
5fda3b9https://github.com/actions/setup-python/commit/5fda3b95a4ea91299a34e894583c3862153e4b97
https://github.com/mara004
mara004https://github.com/mara004
on Jul 27, 2026https://github.com/actions/setup-python/issues/1346#issuecomment-5094653129
https://github.com/woodruffw
woodruffwhttps://github.com/woodruffw
on Jul 27, 2026https://github.com/actions/setup-python/issues/1346#issuecomment-5094683059
setup-python/src/install-pypy.tshttps://github.com/actions/setup-python/blob/5fda3b95a4ea91299a34e894583c3862153e4b97/src/install-pypy.ts#L175-L183
5fda3b9https://github.com/actions/setup-python/commit/5fda3b95a4ea91299a34e894583c3862153e4b97
https://github.com/mara004
mara004https://github.com/mara004
on Jul 27, 2026https://github.com/actions/setup-python/issues/1346#issuecomment-5094712828
https://github.com/search?q=repo%3Aactions%2Fsetup-python+Upgrading&type=codehttps://github.com/search?q=repo%3Aactions%2Fsetup-python+Upgrading&type=code
https://github.com/woodruffw
woodruffwhttps://github.com/woodruffw
on Jul 27, 2026https://github.com/actions/setup-python/issues/1346#issuecomment-5094912151
https://github.com/mara004
mara004https://github.com/mara004
on Jul 27, 2026https://github.com/actions/setup-python/issues/1346#issuecomment-5094940361
https://github.com/pypdfium2-team/pypdfium2/actions/runs/30127505834/job/89594365423https://github.com/pypdfium2-team/pypdfium2/actions/runs/30127505834/job/89594365423
https://github.com/mara004
mara004https://github.com/mara004
on Jul 27, 2026https://github.com/actions/setup-python/issues/1346#issuecomment-5094944912
https://github.com/woodruffw
woodruffwhttps://github.com/woodruffw
on Jul 27, 2026https://github.com/actions/setup-python/issues/1346#issuecomment-5094985808
https://github.com/actions/python-versions/blob/54f797b5823ba87b833222de8bc48c405d525c72/installers/nix-setup-template.sh#L52-L57https://github.com/actions/python-versions/blob/54f797b5823ba87b833222de8bc48c405d525c72/installers/nix-setup-template.sh#L52-L57
https://github.com/mara004
mara004https://github.com/mara004
on Jul 27, 2026https://github.com/actions/setup-python/issues/1346#issuecomment-5094995614
https://github.com/mara004
mara004https://github.com/mara004
on Jul 28, 2026https://github.com/actions/setup-python/issues/1346#issuecomment-5106185791
1https://github.com/actions/setup-python/issues/1346#user-content-fn-1-b46ba9c51fba079b602c157d1ba3ce3f
#1346 (comment)https://github.com/actions/setup-python/issues/1346#issuecomment-5094985808
↩https://github.com/actions/setup-python/issues/1346#user-content-fnref-1-b46ba9c51fba079b602c157d1ba3ce3f
https://github.com/v-HarithaVattikuti
v-HarithaVattikutihttps://github.com/v-HarithaVattikuti
on Jul 28, 2026https://github.com/actions/setup-python/issues/1346#issuecomment-5106466829
@mara004https://github.com/mara004
@woodruffwhttps://github.com/woodruffw
v-HarithaVattikutihttps://github.com/v-HarithaVattikuti
needs triagehttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22needs%20triage%22
on Jul 28, 2026https://github.com/actions/setup-python/issues/1346#event-28609162888
Sign up for freehttps://github.com/signup?return_to=https://github.com/actions/setup-python/issues/1346
Sign in to commenthttps://github.com/login?return_to=https://github.com/actions/setup-python/issues/1346
feature requestNew feature or request to improve the current logichttps://github.com/actions/setup-python/issues?q=state%3Aopen%20label%3A%22feature%20request%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.