Adds 'info', 'none' as a valid argument for audit-level (#120)

* Adds 'info', 'none' as a valid argument for audit-level

* 2.1.0
This commit is contained in:
Naoki Oketani
2022-04-12 08:19:34 +09:00
committed by GitHub
parent e3662da326
commit c0410c237f
4 changed files with 9 additions and 5 deletions

2
dist/index.js vendored
View File

@@ -187,7 +187,7 @@ function run() {
core.info(`Current working directory: ${process.cwd()}`);
// get audit-level
const auditLevel = core.getInput('audit_level', { required: true });
if (!['critical', 'high', 'moderate', 'low'].includes(auditLevel)) {
if (!['critical', 'high', 'moderate', 'low', 'info', 'none'].includes(auditLevel)) {
throw new Error('Invalid input: audit_level');
}
const productionFlag = core.getInput('production_flag', { required: false });