Skip to content

Commit 89ed5e5

Browse files
committed
ci(github workflow): harden workflow
1 parent ee9f8fc commit 89ed5e5

File tree

4 files changed

+26
-22
lines changed

4 files changed

+26
-22
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626
if: steps.yarn-cache.outputs.cache-hit != 'true' # Over here!
2727
run: yarn install --frozen-lockfile --ignore-scripts
2828

29+
- name: yarn audit
30+
run: yarn audit --audit-level high --groups dependencies
31+
2932
env:
3033
CI: true
3134

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
registry-url: 'https://registry.npmjs.org'
1919

2020
- name: Install Dependencies
21-
run: yarn install
21+
run: yarn install --frozen-lockfile --ignore-scripts
2222

2323
- name: Publish to NPM (beta)
2424
if: 'github.event.release.prerelease'

.yarnrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
--frozen-lockfile true
2+
--ignore-scripts true

yarn.lock

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -223,22 +223,13 @@
223223
resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz#fa52f5b1e7db1ab049445b421c4471303897702f"
224224
integrity sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==
225225

226-
"@babel/helpers@^7.24.4":
227-
version "7.24.4"
228-
resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.24.4.tgz#dc00907fd0d95da74563c142ef4cd21f2cb856b6"
229-
integrity sha512-FewdlZbSiwaVGlgT1DPANDuCHaDMiOo+D/IDYRFYjHOuv66xMSJ7fQwwODwRNAPkADIO/z1EoF/l2BCWlWABDw==
230-
dependencies:
231-
"@babel/template" "^7.24.0"
232-
"@babel/traverse" "^7.24.1"
233-
"@babel/types" "^7.24.0"
234-
235-
"@babel/helpers@^7.27.4":
236-
version "7.27.6"
237-
resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.27.6.tgz#6456fed15b2cb669d2d1fabe84b66b34991d812c"
238-
integrity sha512-muE8Tt8M22638HU31A3CgfSUciwz1fhATfoVai05aPXGor//CdWDCbnlY1yvBPo07njuVOCNGCSp/GTt12lIug==
226+
"@babel/helpers@^7.24.4", "@babel/helpers@^7.27.4":
227+
version "7.28.4"
228+
resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.28.4.tgz#fe07274742e95bdf7cf1443593eeb8926ab63827"
229+
integrity sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w==
239230
dependencies:
240231
"@babel/template" "^7.27.2"
241-
"@babel/types" "^7.27.6"
232+
"@babel/types" "^7.28.4"
242233

243234
"@babel/parser@^7.1.0", "@babel/parser@^7.14.7", "@babel/parser@^7.20.7", "@babel/parser@^7.24.4", "@babel/parser@^7.26.10", "@babel/parser@^7.26.7", "@babel/parser@^7.26.9":
244235
version "7.26.10"
@@ -425,14 +416,22 @@
425416
"@babel/helper-string-parser" "^7.25.9"
426417
"@babel/helper-validator-identifier" "^7.25.9"
427418

428-
"@babel/types@^7.27.1", "@babel/types@^7.27.3", "@babel/types@^7.27.6":
419+
"@babel/types@^7.27.1", "@babel/types@^7.27.3":
429420
version "7.27.6"
430421
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.27.6.tgz#a434ca7add514d4e646c80f7375c0aa2befc5535"
431422
integrity sha512-ETyHEk2VHHvl9b9jZP5IHPavHYk57EhanlRRuae9XCpb/j5bDCbPPMOBfCWhnl/7EDJz0jEMCi/RhccCE8r1+Q==
432423
dependencies:
433424
"@babel/helper-string-parser" "^7.27.1"
434425
"@babel/helper-validator-identifier" "^7.27.1"
435426

427+
"@babel/types@^7.28.4":
428+
version "7.28.4"
429+
resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.28.4.tgz#0a4e618f4c60a7cd6c11cb2d48060e4dbe38ac3a"
430+
integrity sha512-bkFqkLhh3pMBUQQkpVgWDWq/lqzc2678eUyDlTBhRqhCHFguYYGM0Efga7tYk4TogG/3x0EEl66/OQ+WGbWB/Q==
431+
dependencies:
432+
"@babel/helper-string-parser" "^7.27.1"
433+
"@babel/helper-validator-identifier" "^7.27.1"
434+
436435
"@bcoe/v8-coverage@^0.2.3":
437436
version "0.2.3"
438437
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
@@ -2267,17 +2266,17 @@ [email protected], body-parser@^2.2.0:
22672266
type-is "^2.0.0"
22682267

22692268
brace-expansion@^1.1.7:
2270-
version "1.1.11"
2271-
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd"
2272-
integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==
2269+
version "1.1.12"
2270+
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.12.tgz#ab9b454466e5a8cc3a187beaad580412a9c5b843"
2271+
integrity sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==
22732272
dependencies:
22742273
balanced-match "^1.0.0"
22752274
concat-map "0.0.1"
22762275

22772276
brace-expansion@^2.0.1:
2278-
version "2.0.1"
2279-
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae"
2280-
integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA==
2277+
version "2.0.2"
2278+
resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.2.tgz#54fc53237a613d854c7bd37463aad17df87214e7"
2279+
integrity sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==
22812280
dependencies:
22822281
balanced-match "^1.0.0"
22832282

0 commit comments

Comments
 (0)