Skip to content

Conversation

@mulahasanovic
Copy link
Contributor

@mulahasanovic mulahasanovic commented Dec 9, 2025

Issue

Post‑install (and other lifecycle) scripts are a top supply‑chain attack vector (Shai‑Hulud, Nx, event‑stream). Any dependency or transitive dependency can execute arbitrary code at install time.

Intent

npm hardening - disable all lifecycle scripts globally.

Implementation

Update .npmrc, set ignore-scripts to true.

npm config set ignore-scripts true

Checks

  • Code is formatted correctly (sasjs lint).
  • Any new functionality has been unit tested.
  • All unit tests are passing (sasjs test).
  • The PR desc or underlying commits follow the Conventional Commit standard

@allanbowe allanbowe merged commit db15c66 into main Dec 9, 2025
1 of 2 checks passed
@allanbowe allanbowe deleted the build/disable-npm-scripts branch December 9, 2025 16:10
@github-actions
Copy link

🎉 This PR is included in version 4.59.10 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants