Skip to content

Commit c8739db

Browse files
authored
chore: address dependabot and code scanning alerts in build tools (#2165)
- jsparser tests: drop unused babel 6, babylon, lazy, lodash and jasmine-node dependencies and refresh xmldom, minimatch and brace-expansion in the lockfile - jsparser: webpack 5.113.0 - android-metadata-generator: drop the unused grunt devDependencies - workflows: pin actions/download-artifact to v8.0.2 and install test-app/tools with npm ci from its lockfile [skip ci]
1 parent fafd22a commit c8739db

6 files changed

Lines changed: 20 additions & 409 deletions

File tree

‎.github/workflows/npm_release.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
- name: Install Dependencies
8484
run: |
8585
npm install
86-
npm install --prefix ./test-app/tools
86+
npm ci --prefix ./test-app/tools
8787
- name: Get Current Version
8888
run: |
8989
NPM_VERSION=$(node -e "console.log(require('./package.json').version);")
@@ -185,7 +185,7 @@ jobs:
185185
- name: Install Dependencies
186186
run: |
187187
npm install
188-
npm install --prefix ./test-app/tools
188+
npm ci --prefix ./test-app/tools
189189
- name: Fetch prebuilt V8
190190
run: ./download_v8.sh
191191
- name: SBG tests
@@ -239,7 +239,7 @@ jobs:
239239
with:
240240
node-version: 22
241241
registry-url: "https://registry.npmjs.org"
242-
- uses: actions/download-artifact@v8
242+
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
243243
with:
244244
name: npm-package
245245
path: dist
@@ -294,11 +294,11 @@ jobs:
294294
node-version: 22
295295
- name: Setup
296296
run: npm install
297-
- uses: actions/download-artifact@v8
297+
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
298298
with:
299299
name: npm-package
300300
path: dist
301-
- uses: actions/download-artifact@v8
301+
- uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
302302
with:
303303
name: debug-symbols
304304
path: dist/debug-symbols

‎.github/workflows/pull_request.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
- name: Install Dependencies
7373
run: |
7474
npm install
75-
npm install --prefix ./test-app/tools
75+
npm ci --prefix ./test-app/tools
7676
- name: Get Current Version
7777
run: |
7878
NPM_VERSION=$(node -e "console.log(require('./package.json').version);")
@@ -157,7 +157,7 @@ jobs:
157157
- name: Install Dependencies
158158
run: |
159159
npm install
160-
npm install --prefix ./test-app/tools
160+
npm ci --prefix ./test-app/tools
161161
- name: Fetch prebuilt V8
162162
run: ./download_v8.sh
163163
- name: SBG tests

‎test-app/build-tools/android-metadata-generator/package.json‎

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,5 @@
1010
"classes/**/*.class",
1111
"bin/**"
1212
],
13-
"private": true,
14-
"devDependencies": {
15-
"grunt": "0.4.5",
16-
"grunt-contrib-clean": "0.7.0",
17-
"grunt-contrib-copy": "0.8.2",
18-
"grunt-exec": "0.4.7",
19-
"node-fs" : "0.1.7"
20-
}
13+
"private": true
2114
}

‎test-app/build-tools/jsparser/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"repository": "https://github.com/NativeScript/android-runtime",
2121
"devDependencies": {
22-
"webpack": "5.101.3",
22+
"webpack": "5.113.0",
2323
"webpack-cli": "4.10.0"
2424
}
2525
}

0 commit comments

Comments
 (0)