From a88b6e6828491e7616aa4f290cfcd5d30422f588 Mon Sep 17 00:00:00 2001 From: bharatkk-metron Date: Wed, 24 Jul 2024 16:43:55 +0530 Subject: [PATCH] convertes string to array --- src/steps/finding/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/steps/finding/index.ts b/src/steps/finding/index.ts index 5d8e2aa..e2920ea 100644 --- a/src/steps/finding/index.ts +++ b/src/steps/finding/index.ts @@ -36,7 +36,7 @@ function getSeverities(instanceConfig: SonarqubeIntegrationConfig) { // V2 -> 10.4 or above version if (apiVersion == APIVersion.V1) { - return severities ? severities: V1_SEVERITIES_VALUES; + return severities ? severities.split(',') : V1_SEVERITIES_VALUES; } return severitiesSet.size === 0 ? V2_SEVERITIES_VALUES