npm-audit-action icon indicating copy to clipboard operation
npm-audit-action copied to clipboard

Add wildcard and array support for the working_directory input

Open dominikfoldi opened this issue 5 years ago • 0 comments

What would you like to be added:

It would be great to provide a wildcard pattern and an array of working directories to the working_directory input. Then the auditing would run in multiple directories and would add the report in one comment or in multiple comments.

Why is this needed:

We have a monorepo and use Lerna to manage it. We have multiple packages in multiple directories like packages and tools. Right now it would be a long list of steps in the workflow if we would want to configure every one of our packages to be audited by this action, plus every time when we add a new package, we would have to add a new step to have that package audited too.

Suggested input format:

 with:
  working_directory: |
    packages/*
    tools/*

dominikfoldi avatar Oct 07 '20 12:10 dominikfoldi