You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG]: SPDX-License-Identifier "MIT OR GPL-3.0" is truncated to MIT and allowed #86
in constants.py. That character class stops at whitespace, OR, and (.
So:
SPDX-License-Identifier: MIT OR GPL-3.0 becomes MIT
SPDX-License-Identifier: Apache-2.0 AND GPL-3.0 becomes Apache-2.0
MIT / Apache-2.0 are allowed, so the skill passes. The copyleft half of the expression never gets evaluated. The project already depends on license-expression and does not use it here.
Expected: a compound SPDX expression that includes a blocked license should fail the license gate, or at least be parsed as the full expression rather than the first token.
Actual: the check reports Found SPDX header 'MIT' in script.py and License: MIT (ALLOWED - permissive). Exit 0.
Reproduction steps
tmp=$(mktemp -d)
mkdir -p "$tmp/spdx"
cat >"$tmp/spdx/SKILL.md"<<'EOF'---name: spdxdescription: Skill whose only license signal is an SPDX OR expression.---# SPDX OREOF
cat >"$tmp/spdx/script.py"<<'EOF'# SPDX-License-Identifier: MIT OR GPL-3.0print("hi")EOF
skillevaluator validate "$tmp/spdx" --checks license --no-dedup -r cli
Observed: License Compliance | PASS, SPDX header recorded as MIT.
The same skill with # SPDX-License-Identifier: GPL-3.0 (no OR) is blocked, so this is specifically the truncated-expression path.
Activity
fix: strip comment closers from SPDX license expressions
fix: evaluate full SPDX license expressions (#98)