feat: add the ability to run with '--json' and output the result (#78)
* addition-of-json-flag * Set output of npn audit
This commit is contained in:
@@ -24,6 +24,7 @@ If vulnerabilities are found by `npm audit`, Action triggered by push, schedule
|
||||
|:--:|:--:|:--:|:--|
|
||||
|audit_level|false|low|The value of `--audit-level` flag|
|
||||
|production_flag|false|false|Runnning `npm audit` with `--production`|
|
||||
|json_flag|false|false|Runnning `npm audit` with `--json`|
|
||||
|issue_assignees|false|N/A|Issue assignees (separated by commma)|
|
||||
|issue_labels|false|N/A|Issue labels (separated by commma)|
|
||||
|issue_title|false|npm audit found vulnerabilities|Issue title|
|
||||
@@ -33,7 +34,9 @@ If vulnerabilities are found by `npm audit`, Action triggered by push, schedule
|
||||
|
||||
### Outputs
|
||||
|
||||
N/A
|
||||
|Parameter name|Description|
|
||||
|:--:|:--|
|
||||
|npm_audit|The output of the npm audit report in a text format|
|
||||
|
||||
## Example Workflow
|
||||
|
||||
|
||||
Reference in New Issue
Block a user