Skip to content

Commit df69138

Browse files
committed
fix path binary
1 parent c3e4ed2 commit df69138

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/CodeQLToolkit.Features/Validation/Commands/Targets/CheckQueriesCommandTarget.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using CodeQLToolkit.Features.Query.Commands.Targets;
22
using CodeQLToolkit.Features.Validation.Models;
3+
using CodeQLToolkit.Shared.CodeQL;
34
using Newtonsoft.Json;
45
using System;
56
using System.Collections.Generic;
@@ -20,9 +21,12 @@ public override void Run()
2021
{
2122
Log<CheckQueriesCommandTarget>.G().LogInformation($"Validating query metadata for {Language}...");
2223

24+
var installation = CodeQLInstallation.LoadFromConfig(Base);
25+
26+
2327
using (Process process = new Process())
2428
{
25-
process.StartInfo.FileName = "codeql";
29+
process.StartInfo.FileName = installation.CodeQLToolBinary;
2630
process.StartInfo.UseShellExecute = false;
2731
process.StartInfo.WorkingDirectory = Base;
2832
process.StartInfo.RedirectStandardOutput = true;

0 commit comments

Comments
 (0)