Skip to content

Commit 35812c7

Browse files
committed
Fixed CodeQL initialization after project compilation by .NET
1 parent 51ea843 commit 35812c7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/codeql.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,20 @@ jobs:
2424
steps:
2525
- name: Checkout repository
2626
uses: actions/checkout@v4
27-
- name: Initialize CodeQL
28-
uses: github/codeql-action/init@v3
27+
- name: Setup .NET
28+
uses: actions/setup-dotnet@v4
2929
with:
30-
languages: ${{ matrix.language }}
30+
dotnet-version: "9.x"
3131
- name: List installed SDKs
3232
run: dotnet --list-sdks
3333
- name: Restore dependencies
3434
run: dotnet restore
3535
- name: Build
3636
run: dotnet build --no-restore -f ${{ matrix.framework }}
37+
- name: Initialize CodeQL
38+
uses: github/codeql-action/init@v3
39+
with:
40+
languages: ${{ matrix.language }}
3741
- name: Perform CodeQL Analysis
3842
uses: github/codeql-action/analyze@v3
3943
with:

0 commit comments

Comments
 (0)