René's URL Explorer Experiment


Title: GitHub · Where software is built

Open Graph Title: actions/setup-python

X Title: actions/setup-python

Description: Set up your GitHub Actions workflow with a specific version of Python - actions/setup-python

Open Graph Description: Set up your GitHub Actions workflow with a specific version of Python - actions/setup-python

X Description: Set up your GitHub Actions workflow with a specific version of Python - actions/setup-python

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

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Enhance setup-python Action in GitHub Enterprise Server with Raw API Fallback Mechanism","articleBody":"**Description:**\r\n\r\nIn the context of GitHub Enterprise Server (GHES), it is typical for runners to share the same IP address due to Network Address Translation (NAT). This configuration results in the quick exhaustion of the unauthenticated rate limit (60 requests per hour per IP address) when accessing the `versions-manifest.json` file, leading to failures in the `setup-python` action. The current workaround is to incorporate [a \"github.com\" token into the `setup-python` action](https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#avoiding-rate-limit-issues). Although this solution is functional, it necessitates the creation of an additional github.com token (and technical user) for each repository/team, which is not optimal. Moreover, Pull Requests from forks are not supported due to their lack of access to the secret. \r\n\r\nA potential improvement could be leveraging the `raw` API to retrieve the version-manifest, as it does not impose a rate limit and hence facilitates unrestricted consumption without the need for a token.\r\n\r\n**Justification:**\r\nOur GitHub Enterprise Server has frequently encountered rate limit issues, and the manual token addition method does not scale well. Utilizing the raw API as a fallback could provide an automatic workaround for this issue. If this approach fails, users can still resort to adding a token.\r\n\r\n**Are you willing to submit a PR?**\r\nI have created a fork to verify that the raw API isn't affected by the rate limit and can be used as a fallback solution. (https://github.com/actions/setup-python/compare/main...Shegox:setup-python:raw-access?expand=1)\r\n\r\nThe log extract from the workaround is as follows:\r\n\r\n```\r\n  Version 3.10 was not found in the local cache\r\n  ##[debug]Getting manifest from actions/python-versions@main\r\n  ##[debug]{\"name\":\"HttpClientError\",\"statusCode\":403,\"result\":{\"message\":\"API rate limit exceeded for xx.xx.xx.xx. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)\",\"documentation_url\":\"https://docs.github.com/rest/overview/resources-in-the-rest-api#rate-limiting\"}}\r\n  ##[debug]Fetching via the API failed. Fetching using raw URL.\r\n  ##[debug]check 3.13.0-alpha.1 satisfies 3.10\r\n  ##[debug]check 3.12.0 satisfies 3.10\r\n  ##[debug]check 3.12.0-rc.3 satisfies 3.10\r\n  ##[debug]check 3.12.0-rc.2 satisfies 3.10\r\n  ##[debug]check 3.12.0-rc.1 satisfies 3.10\r\n```\r\n\r\nI am prepared to submit a PR incorporating the proposed changes. \r\nBefore proposing this PR I wanted to check if that would be accepted or if there are other ideas to overcome this?\r\n\r\n**Related Issues**\r\n\r\n- https://github.com/actions/setup-python/issues/683\r\n- https://github.com/actions/setup-python/issues/638\r\n- https://github.com/actions/setup-python/issues/666\r\n- https://github.com/actions/setup-python/pull/316\r\n- #720 ","author":{"url":"https://github.com/Shegox","@type":"Person","name":"Shegox"},"datePublished":"2023-10-31T12:57:44.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":6},"url":"https://github.com/756/setup-python/issues/756"}

route-pattern/:user_id/:repository/issues/:id(.:format)
route-controllerissues
route-actionshow
fetch-noncev2:4af3e0d4-5e31-8005-b28a-f5478f5e804b
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB258:87E17:1E6941A:2847E6D:696AFE8B
html-safe-nonce019e71b8d9ad2336cae4751bf32be6bf52682140f5fdae8def36a2c8ecccf67a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMjU4Ojg3RTE3OjFFNjk0MUE6Mjg0N0U2RDo2OTZBRkU4QiIsInZpc2l0b3JfaWQiOiIxMDkyMjE2ODAyNjg1NzA5OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac3cd86c1cbd827394fecf69d6de2874a6e8fad403da770c68a3a1972f8b46997b
hovercard-subject-tagrepository:192625525
github-keyboard-shortcutsrepository,issues,actions,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///issues/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/actions/setup-python/issues/756
twitter:imagehttps://opengraph.githubassets.com/0ba871f0b442af9d2998e8d0b4f505e600f01ecb2251cacb678c1a6627a049fd/actions/setup-python
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/0ba871f0b442af9d2998e8d0b4f505e600f01ecb2251cacb678c1a6627a049fd/actions/setup-python
og:image:altSet up your GitHub Actions workflow with a specific version of Python - actions/setup-python
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5f99f7c1d70f01da5b93e5ca90303359738944d8ab470e396496262c66e60b8d
turbo-cache-controlno-cache
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
release82560a55c6b2054555076f46e683151ee28a19bc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/actions/setup-python/issues/756#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-python%2Fissues%2F756
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
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
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://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/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Factions%2Fsetup-python%2Fissues%2F756
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fissues%2Fshow&source=header-repo&source_repo=actions%2Fsetup-python
Reloadhttps://github.com/actions/setup-python/issues/756
Reloadhttps://github.com/actions/setup-python/issues/756
Reloadhttps://github.com/actions/setup-python/issues/756
actions https://github.com/actions
setup-pythonhttps://github.com/actions/setup-python
Notifications https://github.com/login?return_to=%2Factions%2Fsetup-python
Fork 693 https://github.com/login?return_to=%2Factions%2Fsetup-python
Star 2.1k https://github.com/login?return_to=%2Factions%2Fsetup-python
Code https://github.com/actions/setup-python
Issues 38 https://github.com/actions/setup-python/issues
Pull requests 37 https://github.com/actions/setup-python/pulls
Actions https://github.com/actions/setup-python/actions
Projects 0 https://github.com/actions/setup-python/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/actions/setup-python/security
Please reload this pagehttps://github.com/actions/setup-python/issues/756
Insights https://github.com/actions/setup-python/pulse
Code https://github.com/actions/setup-python
Issues https://github.com/actions/setup-python/issues
Pull requests https://github.com/actions/setup-python/pulls
Actions https://github.com/actions/setup-python/actions
Projects https://github.com/actions/setup-python/projects
Security https://github.com/actions/setup-python/security
Insights https://github.com/actions/setup-python/pulse
New issuehttps://github.com/login?return_to=https://github.com/actions/setup-python/issues/756
New issuehttps://github.com/login?return_to=https://github.com/actions/setup-python/issues/756
#766https://github.com/actions/setup-python/pull/766
Enhance setup-python Action in GitHub Enterprise Server with Raw API Fallback Mechanismhttps://github.com/actions/setup-python/issues/756#top
#766https://github.com/actions/setup-python/pull/766
https://github.com/priya-kinthali
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/Shegox
https://github.com/Shegox
Shegoxhttps://github.com/Shegox
on Oct 31, 2023https://github.com/actions/setup-python/issues/756#issue-1970419243
a "github.com" token into the setup-python actionhttps://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#avoiding-rate-limit-issues
https://github.com/actions/setup-python/compare/main...Shegox:setup-python:raw-access?expand=1https://github.com/actions/setup-python/compare/main...Shegox:setup-python:raw-access?expand=1
Unable to use built-in GitHub Token for avoiding rate limit issues on GHES #683https://github.com/actions/setup-python/issues/683
Rate limit token does not work on GHE #638https://github.com/actions/setup-python/issues/638
Getting Bad Credentials error when passing token input in GHE #666https://github.com/actions/setup-python/issues/666
Add support for adding a token on GHES to prevent rate limiting #316https://github.com/actions/setup-python/pull/316
Add support for locally hosted GHES instances to reduce rate limiting #720https://github.com/actions/setup-python/pull/720
priya-kinthalihttps://github.com/priya-kinthali
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.