Skip to content

Disable scripts #959

Open
Open

Description

@jksolbakken

Description:
It would be nice to be able to configure npm to ignore pre and postinstall scripts.

Justification:
Pre/postinstall scripts are a potential security problem.

Are you willing to submit a PR?
Yes, see #955

Activity

  1. v-aparnajyothi-y commented on Feb 13, 2024

    @v-aparnajyothi-y
    Contributor

    Hello @jksolbakken, Thank you for creating this feature request and we will get back to you once we have some feedback :)

  2. janbrasna commented on Feb 28, 2024

    @janbrasna

    Some example uses as https://github.com/actions/setup-node/blob/main/docs/advanced-usage.md#use-private-packages give good reasoning why, but most importantly it also shows how to run the postinstalls via rebuild in a next step without the secrets. I like that approach a lot.

  3. removed their assignment
    on May 14, 2025
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

    feature requestNew feature or request to improve the current logic

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions