Skip to content

Harden npm install security#103

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

Harden npm install security#103
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
@ybiquitous ybiquitous marked this pull request as ready for review May 5, 2026 04:53
@ybiquitous ybiquitous merged commit 3028f49 into main May 5, 2026
15 checks passed
@ybiquitous ybiquitous deleted the harden-npm-install branch May 5, 2026 06:20
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