Skip to content

[6.x] Add .npmrc file#14477

Merged
jasonvarga merged 1 commit into6.xfrom
npmrc
Apr 10, 2026
Merged

[6.x] Add .npmrc file#14477
jasonvarga merged 1 commit into6.xfrom
npmrc

Conversation

@duncanmcclean
Copy link
Copy Markdown
Member

@duncanmcclean duncanmcclean commented Apr 10, 2026

This PR adds an .npmrc file with two rules:

  • Prevents post-install scripts from running, which are commonly used to install malware.
  • Adds a minimum release age of 3 days to provide sufficient time for insecure releases to be found and pulled if necessary (like what happened with axios recently).

Adding as I've noticed Laravel adding these rules to a lot of their repositories recently and thought it'd be a good thing for us to adopt too.

@jasonvarga jasonvarga merged commit 9ffea2b into 6.x Apr 10, 2026
19 checks passed
@jasonvarga jasonvarga deleted the npmrc branch April 10, 2026 15:16
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.

2 participants