Skip to content

Use "safe" pip on account of the eMudhra compromise #33142

Closed as not planned
Closed as not planned

Description

@charris

Grok suggest the following list of places the need fixing. It probably makes sense to use AI for this task.

Workflows / places that need a safe pip install

Needs the safe pip bootstrap

  • linux.yml
    • smoke_test
    • all_versions
    • full
    • benchmark
    • sdist
    • array_api_tests
    • ml_dtypes_compat
    • armhf_test (inside the docker venv)
  • windows.yml
    • clangcl_python64bit_openblas32
    • msvc_python_x86_arm64_no_openblas
    • msvc_python64bit_openblas
  • macos.yml
    • accelerate job (the setup-python path)
  • lint.yml
    • lint job
  • .github/meson_actions/action.yml
    • composite action (used by several linux jobs)

Already OK (no change needed)

  • typecheck.yml (uses uv)
  • pixi-packages.yml (pixi)
  • macos.yml conda job (conda)
  • dependency-review.yml, codeql.yml, scorecards.yml, etc. (no pip installs)

Suggested fix

Add this step immediately after every actions/setup-python (and inside the docker/venv in armhf, and at the top of meson_actions):

- name: Install safe pip
  run: |
    python -m pip install "pip @ https://files.pythonhosted.org/packages/3f/06/3e4420302363fbb71be3c7f35ce042f54bfca330e3e66b3a2e3c4cca579f/pip-26.2.2-py3-none-any.whl#sha256=fd7f4dfa8190e014013b9f08f3e973f4e4c26ffd179a204895533a7254813a70"

Activity

  1. charris commented on Oct 25, 2026

    @charris
    MemberAuthor

    An example at numpy/numpy-release#79.

  2. michelleFae commented on Oct 25, 2026

    @michelleFae

    /take

  3. added a commit that references this issue on Oct 28, 2026
    f26f0fc
  4. rgommers commented on Oct 28, 2026

    @rgommers
    Member

    That bootstrapping does not seem needed here, because we're not publishing nightlies or releases. Just regular upgrades of CI images, python, pip, uv, cibuildwheel etc. versions will do.

  5. mattip commented on Oct 28, 2026

    @mattip
    Member

    Closing as not planned

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions