Adding more tests for the config file.

This commit is contained in:
Federico Builes
2022-06-14 07:42:51 +02:00
parent 3eff3f5918
commit 76ad37608d
2 changed files with 13 additions and 3 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ export function readConfig(): ConfigurationOptions {
const allowedLicenses = core.getInput('allowed-licenses')
const denyLicenses = core.getInput('deny-licenses')
options.fail_on_severity = severity as Severity
options.fail_on_severity = severity.toLowerCase() as Severity
if (allowedLicenses.length > 0) {
options.allow_licenses = allowedLicenses.split(',').map(s => s.trim())