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],
matchPackageNames: [depName],
matchCurrentVersion,
matchFiles: [fileName],
allowedVersions,
prBodyNotes,
isVulnerabilityAlert: true,
@ -180,7 +181,6 @@ export async function detectVulnerabilityAlerts(
...config.vulnerabilityAlerts,
},
};
matchRule.matchFiles = [fileName];
alertPackageRules.push(matchRule);
}
}