diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6bc0c569e1..a48d8cd74c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -68,3 +68,24 @@ jobs: - name: Check dependencies run: npm run checkDependencies continue-on-error: true + + - name: Check licenses + run: npm run check-licenses + check_licenses: + name: Check Licenses + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v5 + + - name: Setup Node.js + uses: actions/setup-node@v5 + with: + node-version: ${{ env.NODE_VERSION }} + cache: 'npm' + + - name: Install dependencies + run: npm ci + + - name: Check Licenses + run: npm run check-licenses diff --git a/package.json b/package.json index 10c5773425..9f9fbe670f 100644 --- a/package.json +++ b/package.json @@ -2055,6 +2055,7 @@ "build:prerelease": "cross-env IS_PRE_RELEASE_VERSION_OF_JUPYTER_EXTENSION=true npm run build", "build:stable": "cross-env IS_PRE_RELEASE_VERSION_OF_JUPYTER_EXTENSION=false npm run build", "build": "concurrently npm:compile-release npm:updatePackageJsonForBundle", + "check-licenses": "npx license-checker-rseidelsohn --onlyAllow 'MIT;Apache-2.0;Apache v2;ISC;BSD;BSD-2-Clause;BSD-3-Clause;0BSD;Python-2.0;CC0-1.0;CC-BY-3.0;CC-BY-4.0;Unlicense;BlueOak-1.0.0;MPL-2.0' --excludePrivatePackages --excludePackages 'bootstrap-less@3.3.8;chai-as-promised@7.1.1;esbuild-plugin-less@1.3.19;eslint-plugin-local-rules@1.0.0;truncate-utf8-bytes@1.0.2;utf8-byte-length@1.0.4'", "checkDependencies": "gulp checkDependencies", "clean": "gulp clean", "compile-esbuild-watch": "npx tsx build/esbuild/build.ts --watch",