From 328957ab238722cfa11a00867a06951f1d10b795 Mon Sep 17 00:00:00 2001 From: Jeff DeWitt Date: Tue, 13 Feb 2024 16:14:36 -0500 Subject: [PATCH] refactor: initialize ignoredFindings as an array --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 434ca12..fdb23b8 100644 --- a/index.js +++ b/index.js @@ -236,7 +236,7 @@ const main = async () => { } const allFindingsList = !!ignoreList.length ? await getAllFindings(ECR, repository, tag) : []; // only fetch all findings if we have an ignore list - let ignoredFindings; + let ignoredFindings = []; if (isEnhancedScan(findings)) { ignoredFindings = allFindingsList.filter(({ packageVulnerabilityDetails }) => ignoreList.includes(packageVulnerabilityDetails.vulnerabilityId));