Skip to content

Commit cd6c0bd

Browse files
committed
Moved CodeQL initialization before .NET compilation to resolve errors
1 parent 35812c7 commit cd6c0bd

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ jobs:
2424
steps:
2525
- name: Checkout repository
2626
uses: actions/checkout@v4
27+
- name: Initialize CodeQL
28+
uses: github/codeql-action/init@v3
29+
with:
30+
languages: ${{ matrix.language }}
2731
- name: Setup .NET
2832
uses: actions/setup-dotnet@v4
2933
with:
@@ -34,10 +38,6 @@ jobs:
3438
run: dotnet restore
3539
- name: Build
3640
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 }}
4141
- name: Perform CodeQL Analysis
4242
uses: github/codeql-action/analyze@v3
4343
with:

0 commit comments

Comments
 (0)