René's URL Explorer Experiment


Title: Add cache-write input for read-only cache mode by salmanmkc · Pull Request #1284 · actions/setup-python · GitHub

Open Graph Title: Add cache-write input for read-only cache mode by salmanmkc · Pull Request #1284 · actions/setup-python

X Title: Add cache-write input for read-only cache mode by salmanmkc · Pull Request #1284 · actions/setup-python

Description: Right now if you use cache: pip (or pipenv/poetry) in a PR workflow, the action restores and saves the cache. There's no way to get read-only mode where you benefit from existing caches without writing back. This matters for cache poisoning — an untrusted PR could plant bad packages in the cache that later get picked up by pushes to main. This adds a cache-write input (defaults to true, no breaking change). Set it to false to skip the post-step save. Usage: - uses: actions/setup-python@v6 with: python-version: "3.12" cache: pip cache-write: ${{ github.event_name != 'pull_request' }} What changed: action.yml — new cache-write input src/cache-save.ts — early return when cache-write is false dist/ — rebuilt Same change going into setup-node, setup-go, setup-java, setup-dotnet.

Open Graph Description: Right now if you use cache: pip (or pipenv/poetry) in a PR workflow, the action restores and saves the cache. There's no way to get read-only mode where you benefit from existing caches without...

X Description: Right now if you use cache: pip (or pipenv/poetry) in a PR workflow, the action restores and saves the cache. There's no way to get read-only mode where you benefit from existing caches wit...

Opengraph URL: https://github.com/actions/setup-python/pull/1284

X: @github

direct link

Domain: github.com

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:e263c92b-1362-7dd9-148d-917257d4edb8
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDAC4:19E603:F40928:13E9872:6AED5B59
html-safe-noncef6aaa52775284a7fc6079a452f819acda6a6bcf522bc0b56942281b1ee1cb4e8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQUM0OjE5RTYwMzpGNDA5Mjg6MTNFOTg3Mjo2QUVENUI1OSIsInZpc2l0b3JfaWQiOiI5MTg1NjEwODI3OTE2MjA0ODg5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacc32b07d603e1ad93038fd08e083e3c09d62256a8ac61643fcad0fe1473c31f6c
hovercard-subject-tagpull_request:3373299752
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,actions,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/actions/setup-python/pull/1284/files
twitter:imagehttps://avatars.githubusercontent.com/u/32169182?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/32169182?s=400&v=4
og:image:altRight now if you use cache: pip (or pipenv/poetry) in a PR workflow, the action restores and saves the cache. There's no way to get read-only mode where you benefit from existing caches without...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None56fb42677ae87ed3e64410323d67980aa65d0485568a7858f874e7edfc6d1c11
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release9c9a37e2423ed382cf39f70b5aa4b4858b40a3b0
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/actions/setup-python/pull/1284/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-python%2Fpull%2F1284%2Ffiles
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%2Fpull%2F1284%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=actions%2Fsetup-python
Reloadhttps://github.com/actions/setup-python/pull/1284/files
Reloadhttps://github.com/actions/setup-python/pull/1284/files
Reloadhttps://github.com/actions/setup-python/pull/1284/files
actionshttps://github.com/actions
setup-pythonhttps://github.com/actions/setup-python
Codehttps://github.com/actions/setup-python
Issues36 (36)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/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Factions%2Fsetup-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Factions%2Fsetup-python%2Fissues%2Fnew%2Fchoose
salmanmkchttps://github.com/salmanmkc
actions:mainhttps://github.com/actions/setup-python/tree/main
salmanmkc:feature/cache-read-onlyhttps://github.com/salmanmkc/setup-python/tree/feature/cache-read-only
Conversation 4 https://github.com/actions/setup-python/pull/1284
Commits 2 https://github.com/actions/setup-python/pull/1284/commits
Checks 1,410 https://github.com/actions/setup-python/pull/1284/checks
Files changed https://github.com/actions/setup-python/pull/1284/files
Please reload this pagehttps://github.com/actions/setup-python/pull/1284/files
Add cache-write input for read-only cache mode https://github.com/actions/setup-python/pull/1284/files#top
Show all changes 2 commits https://github.com/actions/setup-python/pull/1284/files
8a88e9f feat: add cache-write input for read-only cache mode salmanmkc Mar 9, 2026 https://github.com/actions/setup-python/pull/1284/commits/8a88e9f3331dae2c23ea2dccb6b67b04671dcf26
b528417 style: run prettier on cache-save.ts salmanmkc Mar 9, 2026 https://github.com/actions/setup-python/pull/1284/commits/b5284171bb355255370814377fe050263b856f78
Clear filters https://github.com/actions/setup-python/pull/1284/files
Please reload this pagehttps://github.com/actions/setup-python/pull/1284/files
Please reload this pagehttps://github.com/actions/setup-python/pull/1284/files
action.yml https://github.com/actions/setup-python/pull/1284/files#diff-1243c5424efaaa19bd8e813c5e6f6da46316e63761421b3e5f5c8ced9a36e6b6
index.js https://github.com/actions/setup-python/pull/1284/files#diff-a379c78cfaaf58cfb78a676b1d4e4fc89d0ee6a6304b02f3290a66cb29a60e1a
cache-save.ts https://github.com/actions/setup-python/pull/1284/files#diff-b065b04fac75e3f631b853ddd0fed82dd9b59bdd69a0ceab5521771fb399b449
https://github.com/actions/setup-python/blob/main/.github/CODEOWNERS#L1
action.ymlhttps://github.com/actions/setup-python/pull/1284/files#diff-1243c5424efaaa19bd8e813c5e6f6da46316e63761421b3e5f5c8ced9a36e6b6
View file https://github.com/actions/setup-python/blob/b5284171bb355255370814377fe050263b856f78/action.yml
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/actions/setup-python/pull/1284/{{ revealButtonHref }}
https://github.com/actions/setup-python/pull/1284/files#diff-1243c5424efaaa19bd8e813c5e6f6da46316e63761421b3e5f5c8ced9a36e6b6
https://github.com/actions/setup-python/pull/1284/files#diff-1243c5424efaaa19bd8e813c5e6f6da46316e63761421b3e5f5c8ced9a36e6b6
https://github.com/actions/setup-python/blob/main/.github/CODEOWNERS#L1
dist/cache-save/index.jshttps://github.com/actions/setup-python/pull/1284/files#diff-a379c78cfaaf58cfb78a676b1d4e4fc89d0ee6a6304b02f3290a66cb29a60e1a
View file https://github.com/actions/setup-python/blob/b5284171bb355255370814377fe050263b856f78/dist/cache-save/index.js
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/actions/setup-python/pull/1284/{{ revealButtonHref }}
https://github.com/actions/setup-python/pull/1284/files#diff-a379c78cfaaf58cfb78a676b1d4e4fc89d0ee6a6304b02f3290a66cb29a60e1a
https://github.com/actions/setup-python/pull/1284/files#diff-a379c78cfaaf58cfb78a676b1d4e4fc89d0ee6a6304b02f3290a66cb29a60e1a
https://github.com/actions/setup-python/blob/main/.github/CODEOWNERS#L1
src/cache-save.tshttps://github.com/actions/setup-python/pull/1284/files#diff-b065b04fac75e3f631b853ddd0fed82dd9b59bdd69a0ceab5521771fb399b449
View file https://github.com/actions/setup-python/blob/b5284171bb355255370814377fe050263b856f78/src/cache-save.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/actions/setup-python/pull/1284/{{ revealButtonHref }}
https://github.com/actions/setup-python/pull/1284/files#diff-b065b04fac75e3f631b853ddd0fed82dd9b59bdd69a0ceab5521771fb399b449
Copilothttps://github.com/apps/copilot-pull-request-reviewer
Mar 9, 2026https://github.com/actions/setup-python/pull/1284/files#r2905246859
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/actions/setup-python/pull/1284/files
Copilothttps://docs.github.com/copilot/responsible-use-of-github-copilot-features/responsible-use-of-github-copilot-code-review
Copilothttps://github.com/apps/copilot-pull-request-reviewer
Mar 9, 2026https://github.com/actions/setup-python/pull/1284/files#r2905246932
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/actions/setup-python/pull/1284/files
Copilothttps://docs.github.com/copilot/responsible-use-of-github-copilot-features/responsible-use-of-github-copilot-code-review
https://github.com/actions/setup-python/pull/1284/files#diff-b065b04fac75e3f631b853ddd0fed82dd9b59bdd69a0ceab5521771fb399b449
Please reload this pagehttps://github.com/actions/setup-python/pull/1284/files
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.