actions / actions/setup-python
setup-python fails on self hosted runners where runner has no administrator permissions
还没有人认领这个 Issue。
- 主要语言
- TypeScript
- 星标
- 2.2k
- 派生
- 739
- 平均合并
- 6 天 18 小时
- 30 天内合并 PR
- 1
描述
Description:
Setup-python fails on self hosted runners where runner has no administrator permissions.
Throw "Error happened during Python installation"
Action version:
setup-python@v6.2.0
Platform:
- Ubuntu
- macOS
- Windows
Runner type:
- Hosted
- [ X Self-hosted
Repro steps:
use self hosted runner, give runner accounts no administrative permissions
Expected behavior:
Python installs
Actual behavior:
Python installation fails
Root cause is this code line:
"DefaultAllUsersTargetDir=$PythonArchPath InstallAllUsers=1 $Include_freethreaded"
specific InstallAllUsers=1
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
定位包含 DefaultAllUsersTargetDir=$PythonArchPath InstallAllUsers=1 $Include_freethreaded 的 Windows 安装代码,并跟踪它如何在自托管 Windows runner 上运行。使用没有管理员权限的 runner 账户复现,然后验证 Python 是否能在不要求管理员权限的情况下成功安装。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- github-actions, python, typescript
- 领域
- ci-cd, devops
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 冷清
- 描述清晰度
- 基本清楚
- 新手友好度
- 58/100