Skip to content

chore: ensure safe config in the npmrc - #7144

Merged
bjohansebas merged 1 commit into
masterfrom
safe-npmrc
May 17, 2026
Merged

bjohansebas merged 1 commit into
masterfrom
safe-npmrc

Conversation

@sheplu

@sheplu sheplu commented Mar 31, 2026

Copy link
Copy Markdown
Member

Adding latest NPM permission on .npmrc - enforcing:

  • a wait time on update by default
  • ignore all post install scripts
  • block any git usage for packages

@sheplu

sheplu commented Mar 31, 2026

Copy link
Copy Markdown
Member Author

@expressjs/express-tc For review and let's discuss if we want that on all packages?

Comment thread .npmrc Outdated
@@ -1 +1,4 @@
package-lock=false
min-release-age=2

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
min-release-age=2
min-release-age=7

two days only seems low

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moved to 7

@wesleytodd wesleytodd left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FWIW this technically would mean our CI won't show broken builds from deps (direct or transitive) that users would get for 7 days. While I believe this change balances the risk I just wanted to call it out that we may consider having a bypass for this to test breakage that can occur from those deps.

@bjohansebas
bjohansebas merged commit 2eae22b into master May 17, 2026
28 checks passed
@bjohansebas
bjohansebas deleted the safe-npmrc branch May 17, 2026 14:42
@UlisesGascon UlisesGascon mentioned this pull request Sep 14, 2026
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.

4 participants