Skip to content

Commit

Permalink
fix(vulnerabilities): correct range syntax for nuget (#31623)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins authored Sep 26, 2024
1 parent 721985d commit cf2b3c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/workers/repository/init/vulnerability.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,10 @@ export async function detectVulnerabilityAlerts(
};

let matchCurrentVersion = `< ${val.firstPatchedVersion}`;
if (datasource === MavenDatasource.id) {
if (
datasource === MavenDatasource.id ||
datasource === NugetDatasource.id
) {
matchCurrentVersion = `(,${val.firstPatchedVersion})`;
}

Expand Down

0 comments on commit cf2b3c2

Please # to comment.