Skip to content

Commit 1b03f33

Browse files
committed
ci: use socket firewall and renforce npx security
1 parent ba6558f commit 1b03f33

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,15 @@ jobs:
2727
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
2828
with:
2929
node-version: ${{ matrix.node-version }}
30+
- name: Install socket firewall
31+
run: npm i -g sfw
3032
- name: Install dependencies
31-
run: npm install --ignore-scripts
33+
run: sfw npm install --ignore-scripts
3234
- name: Build
3335
run: npm run build
3436
- name: Install Playwright browsers
3537
if: matrix.os == 'ubuntu-latest'
36-
run: npx playwright install --with-deps
38+
run: npx --no --offline playwright install --with-deps
3739
- name: Run tests
3840
run: npm run coverage
3941
- name: Run e2e tests

0 commit comments

Comments
 (0)