Skip to content

Disable scripts by default for yarn#1546

Merged
netomi merged 3 commits intomasterfrom
disable-scripts
Jan 14, 2026
Merged

Disable scripts by default for yarn#1546
netomi merged 3 commits intomasterfrom
disable-scripts

Conversation

@netomi
Copy link
Contributor

@netomi netomi commented Jan 14, 2026

As a consequence of the recent sha-hulud attacks, we need to further tighten the security of the project.

One important step is to disable the automatic execution of lifecycle hooks when running yarn, as explained here:

https://www.nodejs-security.com/blog/npm-ignore-scripts-best-practices-as-security-mitigation-for-malicious-packages

that should be actually a global setting for every developer when working on ontrusted code or code in general.

@netomi netomi merged commit 0f3019c into master Jan 14, 2026
8 checks passed
@netomi netomi deleted the disable-scripts branch January 28, 2026 07:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant