Skip to content

chore: harden npm install security#934

Merged
ybiquitous merged 1 commit intomainfrom
harden-npm-install
May 5, 2026
Merged

chore: harden npm install security#934
ybiquitous merged 1 commit intomainfrom
harden-npm-install

Conversation

@ybiquitous
Copy link
Copy Markdown
Member

Which issue, if any, is this issue related to?

Same as stylelint/stylelint-config-standard#413

Is there anything in the PR that needs further explanation?

Add three flags to .npmrc to reduce supply-chain risk:

  • allow-git = "none" — block git URL dependencies.
  • ignore-scripts = true — skip lifecycle scripts on install.
  • min-release-age = 3 — only install package versions at least 3 days old.

Ref: https://github.com/lirantal/npm-security-best-practices/blob/a98aeb7197d3820686337f28ea96ffe94333457b/README.md

Add three flags to `.npmrc` to reduce supply-chain risk:

- `allow-git = "none"` — block git URL dependencies.
- `ignore-scripts = true` — skip lifecycle scripts on install.
- `min-release-age = 3` — only install package versions at least 3 days old.

Ref: https://github.com/lirantal/npm-security-best-practices/blob/a98aeb7197d3820686337f28ea96ffe94333457b/README.md
@ybiquitous ybiquitous added the pr: dependencies relates to dependencies label May 5, 2026
@changeset-bot

This comment was marked as resolved.

@jeddy3 jeddy3 changed the title Harden npm install security chore: harden npm install security May 5, 2026
@ybiquitous ybiquitous merged commit 3851dd4 into main May 5, 2026
18 checks passed
@ybiquitous ybiquitous deleted the harden-npm-install branch May 5, 2026 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr: dependencies relates to dependencies

Development

Successfully merging this pull request may close these issues.

2 participants