Skip to content

Commit 0108ecc

Browse files
committed
Run CodeQL analysis on Windows
Temporary workaround for LibGit2Sharp apparently unusable with Cake under Linux.
1 parent 388660f commit 0108ecc

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
analyze:
1313
name: Analyze
14-
runs-on: ubuntu-latest
14+
runs-on: windows-latest
1515
env:
1616
DOTNET_NOLOGO: 'true'
1717
DOTNET_CLI_TELEMETRY_OPTOUT: 'true'
@@ -42,13 +42,11 @@ jobs:
4242
- name: Restore .NET tools
4343
run: dotnet tool restore
4444
- name: Build solution
45+
shell: cmd
4546
run: |
46-
if test "$RUNNER_DEBUG" == "1"; then
47-
CAKE_VERBOSITY="Diagnostic"
48-
elif test -z "$CAKE_VERBOSITY"; then
49-
CAKE_VERBOSITY="Normal"
50-
fi
51-
dotnet cake --target Build --verbosity $CAKE_VERBOSITY
47+
if [%CAKE_VERBOSITY%]==[] set CAKE_VERBOSITY=Normal
48+
if [%RUNNER_DEBUG%]==[1] set CAKE_VERBOSITY=Diagnostic
49+
dotnet cake --target Build --verbosity %CAKE_VERBOSITY%
5250
- name: Perform CodeQL Analysis
5351
uses: github/codeql-action/analyze@v3
5452
with:

0 commit comments

Comments
 (0)