Skip to content

[BUG] v12: allowScripts doesn't actually block scripts for file:/link: deps #9498

@owlstronaut

Description

@owlstronaut

On latest (v12-pre), allowScripts entries for file:/link: deps don't gate script execution. A local file: dep with a postinstall runs whether the policy entry is true, false, or missing.

Came up in #9490 review. @JamieMagee confirmed it's a gap that should close before v12 ships (comment).

Per the RFC, false should block silently and an absent entry should block with a warning. Workspaces stay owner-managed.

Lives around the scriptsAllowed check in workspaces/arborist/lib/arborist/rebuild.js#buildQueues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingrelease: nextThese items should be addressed in the next release

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions