updating production flag to --omit=dev (#125)
* updating production flag to --omit=dev * fixing readme comment
This commit is contained in:
@@ -23,7 +23,7 @@ If vulnerabilities are found by `npm audit`, Action triggered by push, schedule
|
||||
|Parameter|Required|Default Value|Description|
|
||||
|:--:|:--:|:--:|:--|
|
||||
|audit_level|false|low|The value of `--audit-level` flag|
|
||||
|production_flag|false|false|Runnning `npm audit` with `--production`|
|
||||
|production_flag|false|false|Runnning `npm audit` with `--omit=dev`|
|
||||
|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)|
|
||||
|
||||
@@ -7,7 +7,7 @@ inputs:
|
||||
default: low
|
||||
required: false
|
||||
production_flag:
|
||||
description: 'Run npm audit with --production'
|
||||
description: 'Run npm audit with --omit=dev'
|
||||
default: 'false'
|
||||
required: false
|
||||
json_flag:
|
||||
|
||||
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -25,7 +25,7 @@ class Audit {
|
||||
const isWindowsEnvironment = process.platform == "win32";
|
||||
const cmd = (isWindowsEnvironment) ? 'npm.cmd' : 'npm';
|
||||
if (productionFlag === 'true') {
|
||||
auditOptions.push('--production');
|
||||
auditOptions.push('--omit=dev');
|
||||
}
|
||||
if (jsonFlag === 'true') {
|
||||
auditOptions.push('--json');
|
||||
|
||||
@@ -19,7 +19,7 @@ export class Audit {
|
||||
const cmd: string = isWindowsEnvironment ? 'npm.cmd' : 'npm'
|
||||
|
||||
if (productionFlag === 'true') {
|
||||
auditOptions.push('--production')
|
||||
auditOptions.push('--omit=dev')
|
||||
}
|
||||
|
||||
if (jsonFlag === 'true') {
|
||||
|
||||
Reference in New Issue
Block a user