Skip to content

Commit b057a95

Browse files
committed
export paths
1 parent cbf3106 commit b057a95

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/run-codeql-unit-tests-cpp.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ jobs:
6767
- name: Verify Versions of Tooling
6868
shell: bash
6969
run: |
70-
echo "CodeQL Home: ${{ steps.install-codeql.outputs.codeql-home }}"
70+
echo "CodeQL Home: $QLT_CODEQL_HOME"
71+
echo "CodeQL Binary: $QLT_CODEQL_PATH"
7172
echo -e "Checking CodeQL Version:"
72-
codeql --version
73+
$QLT_CODEQL_PATH --version
7374
7475
echo -e "Checking QLT Version:"
7576
echo "QLT Home: ${{ steps.install-qlt.outputs.qlt-home }}"

src/CodeQLToolkit.Features/CodeQL/Commands/Targets/InstallCommand.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ public override void Run()
2828
{
2929
Log<InstallCommand>.G().LogInformation($"Installing CodeQL...");
3030
installation.Install();
31+
32+
// set the environment variable
33+
Environment.SetEnvironmentVariable("QLT_CODEQL_HOME", installation.CodeQLHome);
34+
Environment.SetEnvironmentVariable("QLT_CODEQL_PATH", installation.CodeQLToolBinary);
35+
3136
}
3237

3338

0 commit comments

Comments
 (0)