license_tests: pip-license-checker v0.46.1 fails on PEP 639 packages
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 65/100
Direzione di ricerca
Inizia da .github/workflows/license_tests.yml e verifica come è configurato pilosus/action-pip-license-checker, inclusi la sua versione e l’input branch. Aggiorna l’action a v3 e valuta se github.ref_name debba sostituire github.head_ref per gli eventi push. Il lavoro è completato quando il workflow usa la versione supportata del checker e il comportamento di checkout funziona sia per le pull request sia per i push.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 0
- Fork
- 7
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Issue simili
-
[BUG] Container scenario crashes without expected_recovery_time, kube DNS example uses retry_waitApertaneeds-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
krkn-chaos/krkn#1627 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
int128/typescript-action#1575 ·
I maintainer di solito rispondono entro 1 giorno
-
agent/sec-check hive/hosted-available-lke648397-260827-5n31 security
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
femiwiki/docker-mediawiki#1497 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
EPFL-ENAC/co2-calculator#3055 ·
I maintainer di solito rispondono entro 1 giorno