CI: enforce license check and ignore private root package

This commit is contained in:
ilia 2026-01-01 12:59:18 -05:00
parent 66d9f416c4
commit b69284f1c4

View File

@ -236,11 +236,12 @@ jobs:
- name: Check npm licenses
run: |
if [ -f "package.json" ]; then
license-checker --onlyAllow 'MIT;Apache-2.0;BSD-3-Clause;ISC;BSD-2-Clause' || true
npm ci
# Exclude the repo itself (private=true packages are treated as UNLICENSED by license-checker).
license-checker --excludePrivatePackages --onlyAllow 'MIT;Apache-2.0;BSD-3-Clause;ISC;BSD-2-Clause'
else
echo "No package.json found, skipping license check"
fi
continue-on-error: true
vault-check:
needs: skip-ci-check