Skip to content

Remove nonessential npm-run-all dependency to reduce supply chain attack surface #740

@TangoMan75

Description

@TangoMan75

Problem:

The project includes nonessential npm-run-all as a devDependency, which introduces an additional external package into the supply chain.
Each external dependency is a potential attack vector for supply chain attacks, which unfortunately have become more and more common lately.
Moreover each extra dependency requires their own dependencies, creating an exponential risk.

Solution:

Remove npm-run-all and refactor all npm scripts to use native npm run with the --silent flag and && operator.
-s flag suppresses the default npm output, && operator executes command in a sequence achieving the same quiet sequential execution without the extra dependency.

Benefits:

  • Reduces supply chain attack surface by eliminating one external dependency
  • Removes 1 package from node_modules and associated transitive dependencies
  • Maintains equivalent functionality with native npm features

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