-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: lifecycle script triggering despite enableScripts=false #6258
Comments
Bump. |
@arcanis This is a security regression in 4.x vs 3.x. On 3.8.3:
On 4.1.1:
(When package is present in lockfile/cache. When not, both v3 and v4 execute it) SidenoteThe |
Self-service
Describe the bug
It seems that for dependencies which themselves contain a yarn v1 lockfile, the
enableScripts
configuration value is ignored and lifecycle scripts are run regardless.To reproduce
(Aside: The sherlock link in the GH template is 404ing)
enableScripts: false
in.yarnrc.yaml
yarn.lock
todependencies
yarn install
A reproduction PR on a minimal repo is available. As can be seen in the GitHub Actions workflow output from the
yarn install
step, the dependencypreinstall
andpostinstall
lifecycle scripts are triggered as part of theResolution step
.Environment
Additional context
The text was updated successfully, but these errors were encountered: