Skip to content

Commit

Permalink
add --ignore-scripts to npm build
Browse files Browse the repository at this point in the history
use `--ignore-scripts` to secure the npm builds from package supply chain attacks via shell access in pre / post scripts. See https://docs.npmjs.com/cli/v7/commands/npm-install#ignore-scripts
  • Loading branch information
camallen authored Oct 5, 2022
1 parent 34dabfb commit 730b9a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/npm_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
with:
node-version: ${{ inputs.node_version }}
cache: 'npm'
- run: npm ci
- run: npm ci --ignore-scripts
- run: npm run ${{ inputs.script }}

- name: Write commit_id.txt
Expand Down

0 comments on commit 730b9a9

Please sign in to comment.