Skip to content

chore: add 24h package manager cooldown#11

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

chore: add 24h package manager cooldown#11
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>
Copy link
Copy Markdown
Contributor

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 .npmrc setting intended to enforce a 24-hour “cooldown” before newly published packages can be installed.

Changes:

  • Introduces min-release-age=1 in .npmrc

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

@@ -0,0 +1 @@
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.

Repo workflows use npm ci/npm publish (not pnpm/yarn), and min-release-age is not a standard npm config key. If npm ignores this setting, the intended 24h “cooldown” won’t actually be enforced. Consider either (a) switching CI/dev to the package manager that supports this option, or (b) using an npm-supported mechanism and documenting it here so the behavior is guaranteed.

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