File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/CodeQLToolkit.Features/Validation/Commands/Targets Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
using CodeQLToolkit . Features . Query . Commands . Targets ;
2
2
using CodeQLToolkit . Features . Validation . Models ;
3
+ using CodeQLToolkit . Shared . CodeQL ;
3
4
using Newtonsoft . Json ;
4
5
using System ;
5
6
using System . Collections . Generic ;
@@ -20,9 +21,12 @@ public override void Run()
20
21
{
21
22
Log < CheckQueriesCommandTarget > . G ( ) . LogInformation ( $ "Validating query metadata for { Language } ...") ;
22
23
24
+ var installation = CodeQLInstallation . LoadFromConfig ( Base ) ;
25
+
26
+
23
27
using ( Process process = new Process ( ) )
24
28
{
25
- process . StartInfo . FileName = "codeql" ;
29
+ process . StartInfo . FileName = installation . CodeQLToolBinary ;
26
30
process . StartInfo . UseShellExecute = false ;
27
31
process . StartInfo . WorkingDirectory = Base ;
28
32
process . StartInfo . RedirectStandardOutput = true ;
You can’t perform that action at this time.
0 commit comments