Skip to content
Snippets Groups Projects
Commit 256fe01a authored by Rhys Arkins's avatar Rhys Arkins
Browse files

refactor: matchFiles

parent e9297944
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment