Skip to content

Commit 9e0fa42

Browse files
committed
Fix CodeQL for latest C#
1 parent b9824a6 commit 9e0fa42

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

.github/workflows/codeql.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535

3636
# Initializes the CodeQL tools for scanning.
3737
- name: Initialize CodeQL
38-
uses: github/codeql-action/init@v2
38+
uses: github/codeql-action/init@v3
3939
with:
4040
languages: ${{ matrix.language }}
4141
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -45,18 +45,11 @@ jobs:
4545
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
4646
# queries: security-extended,security-and-quality
4747

48-
49-
# Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift).
50-
# If this step fails, then you should remove it and run the build manually (see below)
51-
- if: matrix.language != 'csharp'
52-
name: Autobuild
53-
uses: github/codeql-action/autobuild@v2
54-
5548
- if: matrix.language == 'csharp'
5649
name: .NET Build
5750
run: dotnet build Build.csproj -c Release /p:CI=true
5851

5952
- name: Perform CodeQL Analysis
60-
uses: github/codeql-action/analyze@v2
53+
uses: github/codeql-action/analyze@v3
6154
with:
6255
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)