Skip to content

chore: add 24h package manager cooldown#1

Open
gugu wants to merge 1 commit intomainfrom
chore/add-minimum-release-age
Open

chore: add 24h package manager cooldown#1
gugu wants to merge 1 commit intomainfrom
chore/add-minimum-release-age

Conversation

@gugu
Copy link
Copy Markdown
Member

@gugu gugu commented Mar 31, 2026

Add min-release-age=1 to .npmrc

Adds min-release-age=1 (1 day) to .npmrc to protect against
supply chain attacks from newly published packages.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 31, 2026 12:55
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 a package-manager “cooldown” setting to the repo’s npm configuration to delay consuming newly released packages.

Changes:

  • Updated .npmrc to include min-release-age=1 (intended as a 24-hour minimum release age).

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

Comment thread .npmrc
@@ -1 +1,3 @@
package-lock=false

min-release-age=1
Copy link

Copilot AI Mar 31, 2026

Choose a reason for hiding this comment

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

min-release-age=1 is ambiguous without units and it’s not obvious which package manager(s) will honor it (e.g., this won’t affect the Yarn-based CI job). To avoid the setting being misinterpreted or silently ignored, consider adding an inline comment clarifying the unit/meaning of 1 and the intended package manager scope, or using an explicit duration format if supported.

Suggested change
min-release-age=1
min-release-age=1 # npm only; require packages to be at least 1 day old before install/update (no effect on Yarn)

Copilot uses AI. Check for mistakes.
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