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:
@@ -21,7 +21,11 @@ export async function run(): Promise<void> {
|
||||
|
||||
// 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')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user