standard pip version is below 26.2.2

未关闭
#1,380 11 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@v-gowridurgad 已经在做这个了。

开始于 2026年10月29日。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
38/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
github-actions, python, typescript
领域
ci-cd, security

调研方向

Start by reading the setup-python v7 action code that configures Python and installs or upgrades pip, then check its related tests and the reported actions/setup-python workflow. Determine whether the action installs an outdated pip and how the certificate concern can be addressed securely; done means pip at least 26.2.2 is installed securely on self-hosted Ubuntu runners with Python 3.11 or newer.

由索引模型根据 Issue 内容生成。

描述

bug

Description:
The standard version of pip is not >= 26.2.2, which is a security breach, see certificate compromising
Upon setup

jobs:
  check:
    runs-on: [self-hosted, linux]
    steps:
      - name: Set up Python.
        uses: actions/setup-python@v7
        with:
          python-version: '3.12'

pip is < 26.2.2.

  Attempting uninstall: pip
  Found existing installation: pip 25.0.1
  Uninstalling pip-25.0.1:
  Successfully uninstalled pip-25.0.1
  Successfully installed pip-26.2.2

I am not sure, but I think that pip 26.2.2 is not installed securely by python -m pip install "pip @ https://files.pythonhosted.org/packages/3f/06/3e4420302363fbb71be3c7f35ce042f54bfca330e3e66b3a2e3c4cca579f/pip-26.2.2-py3-none-any.whl#sha256=fd7f4dfa8190e014013b9f08f3e973f4e4c26ffd179a204895533a7254813a70"
This can result in man-in-the-middle-attacks.
I am not sure how to deal with safe installations of older pip versions.

Action version:
v7

Platform:

  • Ubuntu
  • macOS
  • Windows

Runner type:

  • Hosted
  • Self-hosted

Tools version:
Python >= 3.11

Repro steps:
See description.

Expected behavior:
Install pip >= 26.2.2 is installed securely.

Actual behavior:
See description.

主要语言
TypeScript
星标
2.3k
派生
752
平均合并
22 天 15 小时
30 天内合并 PR
1

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

actions/setup-python 的其他 Issue

查看 actions/setup-python 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。