refactor: matchFiles

This commit is contained in:
Rhys Arkins 2021-02-24 15:40:39 +01:00
parent e9297944ab
commit 256fe01a4c

View file

@ -173,6 +173,7 @@ export async function detectVulnerabilityAlerts(
matchDatasources: [datasource], matchDatasources: [datasource],
matchPackageNames: [depName], matchPackageNames: [depName],
matchCurrentVersion, matchCurrentVersion,
matchFiles: [fileName],
allowedVersions, allowedVersions,
prBodyNotes, prBodyNotes,
isVulnerabilityAlert: true, isVulnerabilityAlert: true,
@ -180,7 +181,6 @@ export async function detectVulnerabilityAlerts(
...config.vulnerabilityAlerts, ...config.vulnerabilityAlerts,
}, },
}; };
matchRule.matchFiles = [fileName];
alertPackageRules.push(matchRule); alertPackageRules.push(matchRule);
} }
} }