Skip to content

report unused allowScripts #9561

@ext

Description

@ext

Similar to how npm approve-scripts --allow-scripts-pending can be used to list packages not explicitly approved/denied it would be useful to have something to report unused approvals:

  • Packages no longer installed (e.g. transitive dependencies have changed)
  • Packages no longer having a postinstall script (e.g. a package that used to have one no longer does)

My current workaround is to remove the entire allowScripts and use --allow-scripts-pending again but it is a bit more tedious than it should be and is harder to automate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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