Skip to content

Add .npmrc with min-release-age=7 for supply chain protection#17

Merged
Tiryoh merged 1 commit intomainfrom
add-npmrc-min-release-age
Apr 6, 2026
Merged

Add .npmrc with min-release-age=7 for supply chain protection#17
Tiryoh merged 1 commit intomainfrom
add-npmrc-min-release-age

Conversation

@Tiryoh
Copy link
Copy Markdown
Owner

@Tiryoh Tiryoh commented Mar 31, 2026

Summary

  • Add .npmrc with min-release-age=7 to prevent installing npm packages published less than 7 days ago
  • This mitigates supply chain attacks where a compromised package version is published and quickly consumed before being detected

Test plan

  • Verify .npmrc is present with correct content after checkout
  • Run npm install and confirm it respects the min-release-age setting
  • Run npm run build to confirm no build regressions

🤖 Generated with Claude Code

Prevent installing npm packages published less than 7 days ago.
This mitigates supply chain attacks where a compromised package
version is published and quickly consumed before being detected.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings March 31, 2026 12:37
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds an npm configuration guardrail intended to reduce exposure to “freshly published” dependency versions as a supply-chain mitigation.

Changes:

  • Add a repository-level .npmrc setting min-release-age=7 to enforce a minimum package release age during installs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@Tiryoh Tiryoh merged commit 4da7d5b into main Apr 6, 2026
5 checks passed
@Tiryoh Tiryoh deleted the add-npmrc-min-release-age branch April 6, 2026 17:30
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