Skip to content

Commit 5d131f9

Browse files
authored
ci(codeql): Use manual build instead of autobuild
1 parent 9c7df6b commit 5d131f9

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/codeql.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,19 +40,22 @@ jobs:
4040
with:
4141
fetch-depth: 0
4242

43-
- name: Setup .NET
44-
uses: actions/setup-dotnet@v4
45-
with:
46-
global-json-file: global.json
47-
4843
# Initializes the CodeQL tools for scanning.
4944
- name: Initialize CodeQL
5045
uses: github/codeql-action/init@v3
5146
with:
5247
languages: ${{ matrix.language }}
5348

54-
- name: Autobuild
55-
uses: github/codeql-action/autobuild@v3
49+
- name: Setup .NET
50+
uses: actions/setup-dotnet@v4
51+
with:
52+
global-json-file: global.json
53+
54+
- name: Restore dependencies
55+
run: dotnet restore --locked-mode
56+
57+
- name: Build
58+
run: dotnet build --no-restore
5659

5760
- name: Perform CodeQL Analysis
5861
uses: github/codeql-action/analyze@v3

0 commit comments

Comments
 (0)