Skip to content

Commit f3854bb

Browse files
fix(security): run npm install with --ignore-scripts to avoid malicious scripts in CI
1 parent a2d89a5 commit f3854bb

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

.github/actions/build/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ runs:
1919

2020
- name: Install dependencies
2121
shell: bash
22-
run: npm ci --include=dev
22+
run: npm ci --ignore-scripts --include=dev
2323

2424
- name: Build package
2525
shell: bash

.github/actions/npm-publish/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ runs:
3030

3131
- name: Install dependencies
3232
shell: bash
33-
run: npm ci --include=dev
33+
run: npm ci --ignore-scripts --include=dev
3434

3535
- name: Build package
3636
if: inputs.require-build == 'true'

.github/workflows/integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
ref: ${{ github.event.pull_request.head.sha || github.ref }}
5050

5151
- name: Install dependencies
52-
run: npm ci
52+
run: npm ci --ignore-scripts
5353

5454
- name: Build SDK
5555
run: npm run build

.github/workflows/sca_scan.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
snyk-cli:
1111
uses: auth0/devsecops-tooling/.github/workflows/sca-scan.yml@main
1212
with:
13-
pre-scan-commands: "npm install && npm run install:examples"
13+
pre-scan-commands: "npm install --ignore-scripts && npm run install:examples"
1414
additional-arguments: "--exclude=README.md"
1515
node-version: 24
1616
secrets: inherit

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454
cache: npm
5555

5656
- name: Install dependencies
57-
run: npm ci --include=dev
57+
run: npm ci --ignore-scripts --include=dev
5858

5959
- name: Run tests
6060
run: npm run test

0 commit comments

Comments
 (0)