license_tests: pip-license-checker v0.46.1 fails on PEP 639 packages
还没有人认领这个 Issue。
评估
调研方向
从 .github/workflows/license_tests.yml 开始,检查 pilosus/action-pip-license-checker 的配置方式,包括其版本和 branch 输入。将 action 更新到 v3,并评估在 push 事件中是否应使用 github.ref_name 替换 github.head_ref。完成的标准是 workflow 使用受支持的 checker 版本,并且 checkout 行为对 pull request 和 push 都能正常工作。
由索引模型根据 Issue 内容生成。
描述
Summary
The shared license_tests.yml workflow is failing across repos (e.g. ovos-skill-laugh) with Error: Checker License sources not found for common, well-known packages:
click:8.3.1 Error Error: Checker License sources not found
idna:3.11 Error Error: Checker License sources not found
importlib_metadata:8.7.1 Error Error: Checker License sources not found
RapidFuzz:3.14.3 Error Error: Checker License sources not found
regex:2026.2.28 Error Error: Checker License sources not found
typing_extensions:4.15.0 Error Error: Checker License sources not found
urllib3:2.6.3 Error Error: Checker License sources not found
zipp:3.23.0 Error Error: Checker License sources not found
Root Cause
pilosus/action-pip-license-checker@v2 pins to pip-license-checker 0.46.1, which queries the PyPI JSON API for the old License metadata field. Many packages have migrated to PEP 639's License-Expression field. The checker doesn't understand this format, so it returns Error instead of the actual license string.
Since the workflow sets fail: 'Copyleft,Other,Error', every unresolved package fails the check.
Fix
Upgrade pilosus/action-pip-license-checker to v3 in .github/workflows/license_tests.yml. v3 adds support for the new PyPI metadata format.
Secondary Issue
The workflow passes branch: ${{ github.head_ref }} from calling repos. github.head_ref is only set on pull_request events — on push events it is empty, causing the checkout step to silently fall back to the commit SHA. This works by accident but is fragile. Consider defaulting to github.ref_name instead.
- 主要语言
- 没有语言数据
- 星标
- 0
- 派生
- 7
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 67/100
phusion/passenger-docker#480 ·
-
难度 2/5 1-3 小时 新手友好度 66/100
home-assistant/installer#308 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 73/100
DataDog/datadog-lambda-rb#167 ·
-
难度 2/5 1-3 小时 新手友好度 65/100
alphagov/public-asset-checker#378 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 83/100
维护者通常 1 天内回复