Skip to content

Commit 0a39609

Browse files
ci: license checker (#18)
* ci: license checker * chore: add missing license and clearer status check * chore: skip unused package with no license * fix: resolve license checker issues and fix prettier formatting - Fix trailing whitespace in .github/workflows/ci.yml - Add BSD and 'Apache v2' to allowed licenses (alternate naming for BSD-2-Clause and Apache-2.0) - Exclude 4 devDependencies with WTFPL license: chai-as-promised, esbuild-plugin-less, truncate-utf8-bytes, utf8-byte-length - Exclude eslint-plugin-local-rules (local package with UNKNOWN license) All excluded packages are devDependencies used only for testing/building and are not bundled with the extension. --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
1 parent 5f38928 commit 0a39609

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,24 @@ jobs:
6868
- name: Check dependencies
6969
run: npm run checkDependencies
7070
continue-on-error: true
71+
72+
- name: Check licenses
73+
run: npm run check-licenses
74+
check_licenses:
75+
name: Check Licenses
76+
runs-on: ubuntu-latest
77+
steps:
78+
- name: Checkout
79+
uses: actions/checkout@v5
80+
81+
- name: Setup Node.js
82+
uses: actions/setup-node@v5
83+
with:
84+
node-version: ${{ env.NODE_VERSION }}
85+
cache: 'npm'
86+
87+
- name: Install dependencies
88+
run: npm ci
89+
90+
- name: Check Licenses
91+
run: npm run check-licenses

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2055,6 +2055,7 @@
20552055
"build:prerelease": "cross-env IS_PRE_RELEASE_VERSION_OF_JUPYTER_EXTENSION=true npm run build",
20562056
"build:stable": "cross-env IS_PRE_RELEASE_VERSION_OF_JUPYTER_EXTENSION=false npm run build",
20572057
"build": "concurrently npm:compile-release npm:updatePackageJsonForBundle",
2058+
"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'",
20582059
"checkDependencies": "gulp checkDependencies",
20592060
"clean": "gulp clean",
20602061
"compile-esbuild-watch": "npx tsx build/esbuild/build.ts --watch",

0 commit comments

Comments
 (0)