Skip to content

chore: use npm ci --ignore-scripts in CI and scripts#276

Merged
eifinger merged 1 commit intoastral-sh:mainfrom
woodruffw-forks:ww/npm
Dec 2, 2025
Merged

chore: use npm ci --ignore-scripts in CI and scripts#276
eifinger merged 1 commit intoastral-sh:mainfrom
woodruffw-forks:ww/npm

Conversation

@woodruffw
Copy link
Member

Replaces various uses of npm install with npm ci --ignore-scripts. This should both be more hermetic (it'll always use the locked versions rather than re-resolving) and will partially mitigate some build-time code execution risk.

There should be no breakage risk, as the current dependency footprint is small and shouldn't include anything that uses build scripts 🙂

Signed-off-by: William Woodruff <william@astral.sh>
@woodruffw woodruffw self-assigned this Dec 1, 2025
@woodruffw woodruffw requested a review from eifinger as a code owner December 1, 2025 22:43
eifinger pushed a commit to astral-sh/setup-uv that referenced this pull request Dec 2, 2025
Like astral-sh/ruff-action#276 🙂 

This also adds cooldown stanzas to the Dependabot updater rules: this
ensures that we only receive dependency bumps once they're at least a
week old, which should reduce the window of opportunity for an attacker
who temporarily compromises popular packages (like with "Shai-Hulud"
last week).

Signed-off-by: William Woodruff <william@astral.sh>
Copy link
Collaborator

@eifinger eifinger left a comment

Choose a reason for hiding this comment

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

Awesome thank you!

@eifinger eifinger merged commit 5960f93 into astral-sh:main Dec 2, 2025
62 checks passed
@eifinger eifinger added the ci Changes to automatic workflows label Jan 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci Changes to automatic workflows

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants