Skip to content

Use --ignore-scripts for npm calls #13

Description

@dbIgel

To prevent many supply chain attacks it would be great to have an easy option (eventually even enabled by default?) that calls npm with its --ignore-scripts argument to prevent script execution in

node_package_manager_install_options = getattr(
settings,
"NODE_PACKAGE_MANAGER_INSTALL_OPTIONS",
[
"--no-package-lock",
"--production",
],
)

Currently this is only possible to set this via NODE_PACKAGE_MANAGER_INSTALL_OPTIONS which feels more like a workaround.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions