Repository navigation
Disable dependency lifecycle scripts by default - #525
Merged
zanieb merged 1 commit intoAug 18, 2026
Merged
Conversation
zanieb
marked this pull request as ready for review
August 18, 2026 17:01
This was referenced Aug 18, 2026
MichaReiser
approved these changes
Aug 18, 2026
MichaReiser
left a comment
Member
There was a problem hiding this comment.
Same question as for ruff but looks good
zanieb
added a commit
to astral-sh/ruff-vscode
that referenced
this pull request
Aug 18, 2026
The release workflow uses unrestricted `npm ci` for packaging and both marketplace publishers, even though the local `just` recipes already disable dependency lifecycle scripts. Add `--ignore-scripts` to those installs and make `ignore-scripts=true` the project default, so dependencies cannot introduce automatic install-time code execution. Explicit project commands, including `vscode:prepublish`, remain available. Related: astral-sh/ty-vscode#525 makes the matching install-script change for ty. #1152 separately narrows the marketplace publisher's dependency tree. Co-authored-by: Zanie Blue <[email protected]>
zanieb
pushed a commit
to astral-sh/ruff
that referenced
this pull request
Aug 19, 2026
The playground workflows disable dependency lifecycle scripts, but ordinary local installs in the playground, its API, and the ty benchmark project still enable them. Set `ignore-scripts` in each project's `.npmrc` so the same default applies outside CI, while preserving the existing seven-day release-age policy. Because `ignore-scripts` also suppresses first-party pre/post hooks, the playground's `build`, `dev:build`, and `start` commands invoke their required WASM preparation explicitly. The datastore instructions now install from the API lockfile and invoke its local Wrangler instead of allowing `npx` to resolve a separate dependency tree. Related: astral-sh/ruff-vscode#1151 and astral-sh/ty-vscode#525 apply the same install-script default to the editor extensions. #27844 enforces the cooldown-supporting `npm` floor, #27842 hardens the native `prek` formatter environment, and #27838 locks the playground deployment toolchain. --------- Co-authored-by: zaniebot <[email protected]>
zanieb
added a commit
that referenced
this pull request
Sep 3, 2026
Marketplace publishing already consumes prebuilt VSIX files, but each publisher installs the extension's complete development dependency tree. Give `scripts/publish` an independent lockfile containing the existing `@vscode/vsce` and `ovsx` versions, and install it with dependency lifecycle scripts disabled. Require `npm>=11.10.0` with `engines.npm` and `engine-strict`, and apply a seven-day `min-release-age` to new resolutions. Invoke the locked binaries directly so publishing cannot fall back to an unpinned `npx` download. The packaging jobs and published VSIX artifacts are unchanged. Related: astral-sh/ruff-vscode#1152 applies the same publisher split to Ruff, while #525 sets the install-script policy for the full extension project. #527 applies the matching seven-day policy to the full extension project. astral-sh/ruff#27839 isolates playground builds from their publisher. --------- Co-authored-by: Zanie Blue <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The release workflow uses unrestricted
npm cifor packaging and both marketplace publishers, even though the localjustrecipes already disable dependency lifecycle scripts. Add--ignore-scriptsto those installs and makeignore-scripts=truethe project default, so dependencies cannot introduce automatic install-time code execution. Explicit project commands, includingvscode:prepublish, remain available.Related: astral-sh/ruff-vscode#1151 makes the matching install-script change for Ruff. #526 separately narrows the marketplace publisher's dependency tree, and #527 adds an enforced release-age policy for the full extension project.