Skip to content

Commit ec31dfb

Browse files
authored
Fix audit alerts and enforce frozen lockfile (#33266) (#33302)
1 parent 8e8123e commit ec31dfb

22 files changed

+41
-89
lines changed

.github/actions/run-qunit-tests/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ runs:
115115
116116
- name: Install dependencies
117117
shell: bash
118-
run: pnpm install
118+
run: pnpm install --frozen-lockfile
119119

120120
- name: Build dotnet
121121
working-directory: ./packages/devextreme

.github/workflows/build_all.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
${{ runner.os }}-pnpm-store
4747
4848
- name: Install dependencies
49-
run: pnpm install
49+
run: pnpm install --frozen-lockfile
5050

5151
- name: Build npm packages
5252
run: pnpm run all:build

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
${{ runner.os }}-pnpm-store
4343
4444
- name: Install dependencies
45-
run: pnpm install
45+
run: pnpm install --frozen-lockfile
4646

4747
# - name: Build npm packages
4848
# run: pnpm run all:build

.github/workflows/default_workflow.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
${{ runner.os }}-pnpm-store
5252
5353
- name: Install dependencies
54-
run: pnpm install
54+
run: pnpm install --frozen-lockfile
5555

5656
- name: Run targets
5757
run: >

.github/workflows/demos_unit_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
${{ runner.os }}-pnpm-store
6565
6666
- name: Install dependencies
67-
run: pnpm install
67+
run: pnpm install --frozen-lockfile
6868

6969
- name: Run unit tests
7070
working-directory: apps/demos

.github/workflows/demos_visual_tests_frameworks.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
${{ runner.os }}-pnpm-store
6767
6868
- name: Install dependencies
69-
run: pnpm install
69+
run: pnpm install --frozen-lockfile
7070

7171
- name: DevExtreme - Build-all
7272
env:
@@ -136,7 +136,7 @@ jobs:
136136
${{ runner.os }}-pnpm-store
137137
138138
- name: Install dependencies
139-
run: pnpm install
139+
run: pnpm install --frozen-lockfile
140140

141141
- name: Install tgz
142142
working-directory: apps/demos
@@ -232,7 +232,7 @@ jobs:
232232
${{ runner.os }}-pnpm-store
233233
234234
- name: Install dependencies
235-
run: pnpm install
235+
run: pnpm install --frozen-lockfile
236236

237237
- name: Install tgz
238238
run: pnpm add -w ./devextreme-installer.tgz ./devextreme-dist-installer.tgz ./devextreme-react-installer.tgz ./devextreme-vue-installer.tgz ./devextreme-angular-installer.tgz
@@ -315,7 +315,7 @@ jobs:
315315
${{ runner.os }}-pnpm-store
316316
317317
- name: Install dependencies
318-
run: pnpm install
318+
run: pnpm install --frozen-lockfile
319319

320320
- name: Install tgz
321321
run: pnpm add -w ./devextreme-installer.tgz ./devextreme-dist-installer.tgz ./devextreme-react-installer.tgz ./devextreme-vue-installer.tgz ./devextreme-angular-installer.tgz
@@ -479,7 +479,7 @@ jobs:
479479
${{ runner.os }}-pnpm-store
480480
481481
- name: Install dependencies
482-
run: pnpm install
482+
run: pnpm install --frozen-lockfile
483483

484484
- name: Install tgz
485485
working-directory: apps/demos

.github/workflows/lint.yml

Lines changed: 8 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
${{ runner.os }}-pnpm-store
5050
5151
- name: Install dependencies
52-
run: pnpm install
52+
run: pnpm install --frozen-lockfile
5353

5454
- name: Compile renovation
5555
working-directory: ./packages/devextreme
@@ -94,7 +94,7 @@ jobs:
9494
${{ runner.os }}-pnpm-store
9595
9696
- name: Install dependencies
97-
run: pnpm install
97+
run: pnpm install --frozen-lockfile
9898

9999
- name: Build
100100
working-directory: ./packages/devextreme
@@ -151,7 +151,7 @@ jobs:
151151
${{ runner.os }}-pnpm-store
152152
153153
- name: Install dependencies
154-
run: pnpm install
154+
run: pnpm install --frozen-lockfile
155155

156156
- name: Build
157157
working-directory: ./packages/devextreme
@@ -196,7 +196,7 @@ jobs:
196196
${{ runner.os }}-pnpm-store
197197
198198
- name: Install dependencies
199-
run: pnpm install
199+
run: pnpm install --frozen-lockfile
200200

201201
- name: Check texts
202202
working-directory: ./packages/devextreme
@@ -235,60 +235,12 @@ jobs:
235235
${{ runner.os }}-pnpm-store
236236
237237
- name: Install dependencies
238-
run: pnpm install
238+
run: pnpm install --frozen-lockfile
239239

240240
- name: Lint CSS
241241
working-directory: ./packages/devextreme-scss
242242
run: pnpx nx lint
243243

244-
pnpm_lock:
245-
runs-on: devextreme-shr2
246-
timeout-minutes: 10
247-
steps:
248-
- name: Get sources
249-
uses: actions/checkout@v4
250-
251-
- name: Use Node.js
252-
uses: actions/setup-node@v4
253-
with:
254-
node-version: '20'
255-
256-
- uses: pnpm/action-setup@v3
257-
with:
258-
version: 9
259-
run_install: false
260-
261-
- name: Get pnpm store directory
262-
shell: bash
263-
run: |
264-
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
265-
266-
- uses: actions/cache@v4
267-
name: Setup pnpm cache
268-
with:
269-
path: |
270-
${{ env.STORE_PATH }}
271-
.nx/cache
272-
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
273-
restore-keys: |
274-
${{ runner.os }}-pnpm-store
275-
276-
- name: Update lock-file
277-
run: |
278-
node -v
279-
pnpm -v
280-
pnpm install
281-
282-
- name: Upload lock-file
283-
uses: actions/upload-artifact@v4
284-
with:
285-
name: package-lock.json
286-
path: ./package-lock.json
287-
retention-days: 1
288-
289-
- name: Check lock-file
290-
run: git diff --exit-code pnpm-lock.yaml
291-
292244
component_exports:
293245
runs-on: devextreme-shr2
294246
timeout-minutes: 10
@@ -322,7 +274,7 @@ jobs:
322274
${{ runner.os }}-pnpm-store
323275
324276
- name: Install dependencies
325-
run: pnpm install
277+
run: pnpm install --frozen-lockfile
326278

327279
- name: Check generated component reexports
328280
working-directory: ./packages/devextreme
@@ -372,15 +324,15 @@ jobs:
372324
${{ runner.os }}-pnpm-store
373325
374326
- name: Install dependencies
375-
run: pnpm install
327+
run: pnpm install --frozen-lockfile
376328

377329
- name: Lint wrappers
378330
run: pnpx nx run-many -t lint -p devextreme-angular devextreme-react devextreme-vue
379331

380332
notify:
381333
runs-on: devextreme-shr2
382334
name: Send notifications
383-
needs: [Renovation, TS, JS, CSS, texts, pnpm_lock, component_exports]
335+
needs: [Renovation, TS, JS, CSS, texts, component_exports]
384336
if: github.event_name != 'pull_request' && contains(needs.*.result, 'failure')
385337

386338
steps:

.github/workflows/packages_publishing.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
${{ runner.os }}-pnpm-store
6565
6666
- name: Install dependencies
67-
run: pnpm install
67+
run: pnpm install --frozen-lockfile
6868

6969
- name: Set timestamp version
7070
if: ${{ env.SET_TIMESTAMP_VERSION == 'true' }}
@@ -150,7 +150,7 @@ jobs:
150150
${{ runner.os }}-pnpm-store
151151
152152
- name: Install dependencies
153-
run: pnpm install
153+
run: pnpm install --frozen-lockfile
154154

155155
- name: Change package scope
156156
id: scopedPackage

.github/workflows/playgrounds_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
${{ runner.os }}-pnpm-store
5555
5656
- name: Install dependencies
57-
run: pnpm install
57+
run: pnpm install --frozen-lockfile
5858

5959
- name: Build
6060
working-directory: ./packages/devextreme
@@ -130,7 +130,7 @@ jobs:
130130
${{ runner.os }}-pnpm-store
131131
132132
- name: Install dependencies
133-
run: pnpm install
133+
run: pnpm install --frozen-lockfile
134134

135135
- name: Build
136136
working-directory: ./packages/devextreme-${{ matrix.ARGS.platform }}

.github/workflows/publish-demos.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Install dependencies
3737
run: |
3838
corepack enable
39-
pnpm install
39+
pnpm install --frozen-lockfile
4040
4141
- name: DevExtreme - Build-all
4242
env:
@@ -103,7 +103,7 @@ jobs:
103103
- name: Install dependencies
104104
run: |
105105
corepack enable
106-
pnpm install
106+
pnpm install --frozen-lockfile
107107
108108
- name: Install tgz
109109
working-directory: apps/demos
@@ -205,7 +205,7 @@ jobs:
205205
- name: Install dependencies
206206
run: |
207207
corepack enable
208-
pnpm install
208+
pnpm install --frozen-lockfile
209209
210210
- name: Install tgz
211211
working-directory: apps/demos

0 commit comments

Comments
 (0)