Skip to content

Commit 03f2514

Browse files
committed
chore: replace container-based license tool with license-tool npm package
Assisted-by: Cursor Signed-off-by: Oleksii Orel <oorel@redhat.com>
1 parent 09df2e5 commit 03f2514

File tree

7 files changed

+608
-377
lines changed

7 files changed

+608
-377
lines changed

.deps/EXCLUDED/dev.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,8 @@ This file contains a manual contribution to .deps/dev.md and it's needed because
22

33
| Packages | Resolved CQs |
44
| --- | --- |
5-
| `ts-jest@29.3.1` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/ts-jest/29.3.1) |
6-
| `eslint@10.0.2` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/eslint/9.39.1) |
7-
| `@eslint/config-array@0.23.2` | transitive dependency |
8-
| `ajv@6.14.0` | transitive dependency |
9-
| `brace-expansion@5.0.4` | transitive dependency |
10-
| `rimraf@6.1.3` | transitive dependency |
11-
| `minimatch@10.2.4` | transitive dependency |
5+
| `@emnapi/core@1.7.0` | transitive dependency |
6+
| `@emnapi/runtime@1.7.0` | transitive dependency |
127
| `@rollup/rollup-android-arm-eabi@4.53.3` | transitive dependency |
138
| `@rollup/rollup-android-arm64@4.53.3` | transitive dependency |
149
| `@rollup/rollup-darwin-arm64@4.53.3` | transitive dependency |
@@ -19,19 +14,24 @@ This file contains a manual contribution to .deps/dev.md and it's needed because
1914
| `@rollup/rollup-linux-arm-musleabihf@4.53.3` | transitive dependency |
2015
| `@rollup/rollup-linux-arm64-gnu@4.53.3` | transitive dependency |
2116
| `@rollup/rollup-linux-arm64-musl@4.53.3` | transitive dependency |
17+
| `@rollup/rollup-linux-loong64-gnu@4.53.3` | transitive dependency |
2218
| `@rollup/rollup-linux-loongarch64-gnu@4.53.3` | transitive dependency |
2319
| `@rollup/rollup-linux-powerpc64le-gnu@4.53.3` | transitive dependency |
20+
| `@rollup/rollup-linux-ppc64-gnu@4.53.3` | transitive dependency |
2421
| `@rollup/rollup-linux-riscv64-gnu@4.53.3` | transitive dependency |
22+
| `@rollup/rollup-linux-riscv64-musl@4.53.3` | transitive dependency |
2523
| `@rollup/rollup-linux-s390x-gnu@4.53.3` | transitive dependency |
2624
| `@rollup/rollup-linux-x64-musl@4.53.3` | transitive dependency |
25+
| `@rollup/rollup-openharmony-arm64@4.53.3` | transitive dependency |
2726
| `@rollup/rollup-win32-arm64-msvc@4.53.3` | transitive dependency |
2827
| `@rollup/rollup-win32-ia32-msvc@4.53.3` | transitive dependency |
29-
| `@rollup/rollup-win32-x64-msvc@4.53.3` | transitive dependency |
30-
| `@rollup/rollup-linux-riscv64-musl@4.53.3` | transitive dependency |
31-
| `@rollup/rollup-linux-loong64-gnu@4.53.3` | transitive dependency |
32-
| `@rollup/rollup-linux-ppc64-gnu@4.53.3` | transitive dependency |
33-
| `@rollup/rollup-openharmony-arm64@4.53.3` | transitive dependency |
3428
| `@rollup/rollup-win32-x64-gnu@4.53.3` | transitive dependency |
35-
| `@emnapi/core@1.7.0` | transitive dependency |
36-
| `@emnapi/runtime@1.7.0` | transitive dependency |
37-
29+
| `@rollup/rollup-win32-x64-msvc@4.53.3` | transitive dependency |
30+
| `@sinclair/typebox@0.34.48` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/@sinclair/typebox/0.34.48) |
31+
| `dedent@1.7.2` | #23285 |
32+
| `glob@11.0.0` | #17986 |
33+
| `isexe@3.1.4` | #26030 |
34+
| `make-fetch-happen@15.0.4` | #24961 |
35+
| `minipass-fetch@5.0.2` | #24965 |
36+
| `tar@7.5.11` | #25796 |
37+
| `ts-jest@29.3.1` | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/ts-jest/29.3.1) |

.deps/EXCLUDED/prod.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ This file lists dependencies that do not need CQs or auto-detection does not wor
44
| --- | --- |
55
| `@inversifyjs/container@1.14.1` | transitive dependency |
66
| `@inversifyjs/core@9.1.1` | transitive dependency |
7+
| `fs-extra@11.3.4` | #18872 |

.deps/dev.md

Lines changed: 441 additions & 299 deletions
Large diffs are not rendered by default.

.deps/prod.md

Lines changed: 26 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -2,57 +2,31 @@
22

33
| Packages | License | Resolved CQs |
44
| --- | --- | --- |
5-
| [`@devfile/api@2.3.0-1757407014`](https://github.com/devfile/api) | Apache-2.0 | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/@devfile/api/2.3.0-1757407014) |
6-
| [`@inversifyjs/common@1.5.2`](git+https://github.com/inversify/monorepo.git) | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/@inversifyjs/common/1.5.2) |
7-
| [`@inversifyjs/container@1.15.0`](git+https://github.com/inversify/monorepo.git) | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/@inversifyjs/container/1.15.0) |
8-
| [`@inversifyjs/core@9.2.0`](git+https://github.com/inversify/monorepo.git) | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/@inversifyjs/core/9.2.0) |
9-
| [`@inversifyjs/plugin@0.2.0`](git+https://github.com/inversify/monorepo.git) | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/@inversifyjs/plugin/0.2.0) |
10-
| [`@inversifyjs/prototype-utils@0.1.3`](git+https://github.com/inversify/monorepo.git) | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/@inversifyjs/prototype-utils/0.1.3) |
11-
| [`@inversifyjs/reflect-metadata-utils@1.4.1`](git+https://github.com/inversify/monorepo.git) | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/@inversifyjs/reflect-metadata-utils/1.4.1) |
12-
| [`@types/node-fetch@2.6.13`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | #11004 |
13-
| [`@types/node@25.3.3`](https://github.com/DefinitelyTyped/DefinitelyTyped.git) | MIT | #26367 |
14-
| `argparse@2.0.1` | Python-2.0 | CQ22954 |
15-
| [`async-function@1.0.0`](git+https://github.com/ljharb/async-function.git) | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/async-function/1.0.0) |
16-
| [`async-generator-function@1.0.0`](git+https://github.com/ljharb/async-generator-function.git) | MIT | #23714 |
17-
| [`asynckit@0.4.0`](git+https://github.com/alexindigo/asynckit.git) | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/asynckit/0.4.0) |
18-
| [`call-bind-apply-helpers@1.0.2`](git+https://github.com/ljharb/call-bind-apply-helpers.git) | MIT | #17826 |
19-
| [`combined-stream@1.0.8`](git://github.com/felixge/node-combined-stream.git) | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/combined-stream/1.0.8) |
20-
| [`delayed-stream@1.0.0`](git://github.com/felixge/node-delayed-stream.git) | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/delayed-stream/1.0.0) |
21-
| [`dunder-proto@1.0.1`](git+https://github.com/es-shims/dunder-proto.git) | MIT | #17824 |
22-
| [`es-define-property@1.0.1`](git+https://github.com/ljharb/es-define-property.git) | MIT | #13222 |
23-
| [`es-errors@1.3.0`](git+https://github.com/ljharb/es-errors.git) | MIT | #13162 |
24-
| [`es-object-atoms@1.1.1`](git+https://github.com/ljharb/es-object-atoms.git) | MIT | #18800 |
25-
| [`es-set-tostringtag@2.1.0`](git+https://github.com/es-shims/es-set-tostringtag.git) | MIT | #18399 |
26-
| [`es6-promise@4.2.8`](git://github.com/stefanpenner/es6-promise.git) | MIT | #2898 |
27-
| [`form-data@2.5.5`](git://github.com/form-data/form-data.git) | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/form-data/2.5.5) |
28-
| [`form-data@4.0.5`](git://github.com/form-data/form-data.git) | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/form-data/4.0.5) |
29-
| [`fs-extra@11.3.3`](https://github.com/jprichardson/node-fs-extra) | MIT | #18872 |
30-
| [`function-bind@1.1.2`](https://github.com/Raynos/function-bind.git) | MIT | #11063 |
31-
| [`generator-function@2.0.1`](git+https://github.com/TimothyGu/generator-function.git) | MIT | #23713 |
32-
| [`get-intrinsic@1.3.1`](git+https://github.com/ljharb/get-intrinsic.git) | MIT | #19525 |
33-
| [`get-proto@1.0.1`](git+https://github.com/ljharb/get-proto.git) | MIT | #18351 |
34-
| [`gopd@1.2.0`](git+https://github.com/ljharb/gopd.git) | MIT | #17752 |
35-
| [`graceful-fs@4.2.11`](https://github.com/isaacs/node-graceful-fs) | ISC | #7413 |
36-
| [`has-symbols@1.1.0`](git://github.com/inspect-js/has-symbols.git) | MIT | #17606 |
37-
| [`has-tostringtag@1.0.2`](git+https://github.com/inspect-js/has-tostringtag.git) | MIT | #13161 |
38-
| [`hasown@2.0.2`](git+https://github.com/inspect-js/hasOwn.git) | MIT | #11097 |
39-
| [`inversify@7.11.0`](git+https://github.com/inversify/monorepo.git) | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/inversify/7.11.0) |
40-
| `js-yaml@4.1.1` | MIT | #24673 |
41-
| [`jsonc-parser@3.3.1`](https://github.com/microsoft/node-jsonc-parser) | MIT | #15491 |
42-
| [`jsonfile@6.2.0`](git@github.com:jprichardson/node-jsonfile.git) | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/jsonfile/6.2.0) |
43-
| [`jsonschema@1.5.0`](git://github.com/tdegrunt/jsonschema.git) | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/jsonschema/1.5.0) |
44-
| [`lodash@4.17.23`](https://lodash.com/) | MIT | #2096 |
45-
| [`math-intrinsics@1.1.0`](git+https://github.com/es-shims/math-intrinsics.git) | MIT | #17964 |
46-
| `mime-db@1.52.0` | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/mime-db/1.52.0) |
47-
| `mime-types@2.1.35` | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/mime-types/2.1.35) |
48-
| [`node-fetch@2.7.0`](https://github.com/bitinn/node-fetch.git) | MIT | #10509 |
49-
| [`querystringify@2.2.0`](https://github.com/unshiftio/querystringify) | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/querystringify/2.2.0) |
50-
| [`reflect-metadata@0.2.2`](https://github.com/rbuckton/reflect-metadata.git) | Apache-2.0 | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/reflect-metadata/0.2.2) |
51-
| [`requires-port@1.0.0`](https://github.com/unshiftio/requires-port) | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/requires-port/1.0.0) |
52-
| [`safe-buffer@5.2.1`](git://github.com/feross/safe-buffer.git) | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/safe-buffer/5.2.1) |
53-
| [`tr46@0.0.3`](git+https://github.com/Sebmaster/tr46.js.git) | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/tr46/0.0.3) |
54-
| [`undici-types@7.18.2`](git+https://github.com/nodejs/undici.git) | MIT | #26289 |
55-
| [`universalify@2.0.1`](git+https://github.com/RyanZim/universalify.git) | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/universalify/2.0.1) |
56-
| [`url-parse@1.5.10`](https://github.com/unshiftio/url-parse.git) | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/url-parse/1.5.10) |
5+
| `@devfile/api@2.3.0-1757407014` | Apache-2.0 | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/@devfile/api/2.3.0-1757407014) |
6+
| `@inversifyjs/common@1.5.2` | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/@inversifyjs/common/1.5.2) |
7+
| `@inversifyjs/container@1.15.0` | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/@inversifyjs/container/1.15.0) |
8+
| `@inversifyjs/core@9.2.0` | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/@inversifyjs/core/9.2.0) |
9+
| `@inversifyjs/plugin@0.2.0` | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/@inversifyjs/plugin/0.2.0) |
10+
| `@inversifyjs/prototype-utils@0.1.3` | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/@inversifyjs/prototype-utils/0.1.3) |
11+
| `@inversifyjs/reflect-metadata-utils@1.4.1` | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/@inversifyjs/reflect-metadata-utils/1.4.1) |
12+
| `@types/node-fetch@2.6.13` | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/@types/node-fetch/2.6.13) |
13+
| `argparse@2.0.1` | Python-2.0 | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/argparse/2.0.1) |
14+
| `es6-promise@4.2.8` | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/es6-promise/4.2.8) |
15+
| `form-data@2.5.5` | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/form-data/2.5.5) |
16+
| `fs-extra@11.3.4` | | #18872 |
17+
| `inversify@7.11.0` | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/inversify/7.11.0) |
18+
| `js-yaml@4.1.1` | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/js-yaml/4.1.1) |
19+
| `jsonc-parser@3.3.1` | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/jsonc-parser/3.3.1) |
20+
| `jsonfile@6.2.0` | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/jsonfile/6.2.0) |
21+
| `jsonschema@1.5.0` | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/jsonschema/1.5.0) |
22+
| `lodash@4.17.23` | CC0-1.0 AND MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/lodash/4.17.23) |
23+
| `node-fetch@2.7.0` | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/node-fetch/2.7.0) |
24+
| `querystringify@2.2.0` | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/querystringify/2.2.0) |
25+
| `reflect-metadata@0.2.2` | Apache-2.0 | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/reflect-metadata/0.2.2) |
26+
| `requires-port@1.0.0` | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/requires-port/1.0.0) |
27+
| `safe-buffer@5.2.1` | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/safe-buffer/5.2.1) |
28+
| `tr46@0.0.3` | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/tr46/0.0.3) |
29+
| `universalify@2.0.1` | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/universalify/2.0.1) |
30+
| `url-parse@1.5.10` | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/url-parse/1.5.10) |
5731
| `webidl-conversions@3.0.1` | BSD-2-Clause | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/webidl-conversions/3.0.1) |
5832
| `whatwg-url@5.0.0` | MIT | [clearlydefined](https://clearlydefined.io/definitions/npm/npmjs/-/whatwg-url/5.0.0) |

.github/workflows/pr-checks.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,15 @@ jobs:
2020
if: ${{ github.base_ref == 'main' }}
2121
steps:
2222
- name: Checkout
23-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
24+
- name: Use Node 24
25+
uses: actions/setup-node@v4
2426
with:
25-
fetch-depth: 0
26-
persist-credentials: false
27+
node-version: 24
28+
- name: Install dependencies
29+
run: yarn install
2730
- name: Check dependencies usage restrictions
28-
run: docker run --rm -t -v ${PWD}/:/workspace/project quay.io/che-incubator/dash-licenses:next --check
31+
run: yarn license:check
2932

3033
unit-tests:
3134
runs-on: ubuntu-22.04

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
"lint:fix": "eslint --fix --cache=true --no-error-on-unmatched-pattern=true '{src,tests}/(!model|**)/*.ts'",
2323
"test": "if-env SKIP_TEST=true && echo 'skip test' || jest --forceExit",
2424
"watch": "tsc -w",
25-
"license:check": "podman run --rm -t -v ${PWD}/:/workspace/project quay.io/che-incubator/dash-licenses:next --check --batch 500",
26-
"license:generate": "podman run --rm -t -v ${PWD}/:/workspace/project quay.io/che-incubator/dash-licenses:next",
25+
"license:check": "license-tool --check",
26+
"license:generate": "license-tool --harvest",
2727
"publish:next": "yarn publish --registry=https://registry.npmjs.org/ --no-git-tag-version --new-version 0.0.1-'$(date +%s)'"
2828
},
2929
"repository": {
@@ -53,6 +53,7 @@
5353
"eslint": "^10.0.2",
5454
"if-env": "^1.0.4",
5555
"jest": "^30.2.0",
56+
"license-tool": "https://github.com/che-incubator/dash-licenses.git#c09f697ea6336ce82d365654dfeb7ef6e9c84768",
5657
"prettier": "^3.3.2",
5758
"rimraf": "^6.0.1",
5859
"rollup": "^4.18.0",

0 commit comments

Comments
 (0)