Skip to content

feat: make manifest urls overridable#1

Open
cdkovacs wants to merge 1 commit into
mainfrom
feat/manifest_url_override
Open

feat: make manifest urls overridable#1
cdkovacs wants to merge 1 commit into
mainfrom
feat/manifest_url_override

Conversation

@cdkovacs
Copy link
Copy Markdown
Owner

Description:
Resolves actions#1233 by making the source URLs that setup-python queries configurable, so runners behind a firewall (e.g. self-hosted Gitea) can point the action at mirrors of actions/python-versions, downloads.python.org, and the GraalPy GitHub release endpoints without patching the action.

New inputs (all optional, default to today's upstream URLs)

Input Default Purpose
manifest-url https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json Raw URL of the CPython versions-manifest.json.
manifest-repo-owner / manifest-repo-name / manifest-repo-branch actions / python-versions / main Used by the GitHub-API fallback that fetches the manifest from a repository.
pypy-versions-url https://downloads.python.org/pypy/versions.json URL of the PyPy versions.json.
graalpy-releases-url https://api.github.com/repos/oracle/graalpython/releases Endpoint returning the GraalPy stable releases.
graalpy-prerelease-releases-url https://api.github.com/repos/graalvm/graal-languages-ea-builds/releases Endpoint returning the GraalPy pre-release builds.

Each input is opt-in. If left unset, the action uses the same URL it always has. Download URLs themselves aren't rewritten by the action; the mirrored manifest/versions.json is expected to contain mirrored asset URLs (the simplest and least invasive option, since the user controls the manifest contents).

Related issue:
actions#1233

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

@cdkovacs cdkovacs marked this pull request as ready for review May 11, 2026 17:22
@cdkovacs cdkovacs closed this May 11, 2026
@cdkovacs cdkovacs reopened this May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: configurable MANIFEST_URL and downloadUrl for mirrors

1 participant