Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

license_tests: pip-license-checker v0.46.1 fails on PEP 639 packages

オープン 初心者向け
#10 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
65/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
github-actions, python
領域
ci-cd

調査の方向性

.github/workflows/license_tests.yml から始めて、pilosus/action-pip-license-checker がどのように設定されているかを、バージョンと branch input を含めて確認します。action を v3 に更新し、push イベントでは github.head_ref の代わりに github.ref_name を使用すべきか評価します。workflow がサポートされている checker バージョンを使用し、pull request と push の両方で checkout の動作が機能すれば完了です。

索引モデルが 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 はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

似ている issue

DevOps の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。