Skip to content

Commit 0f9bd48

Browse files
Remove build from CodeQL
Analyse C# code without building it.
1 parent d5ff634 commit 0f9bd48

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

.github/workflows/code-scan.yml

+4-16
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
pull_request:
77
branches: [ main, dotnet-vnext ]
88
schedule:
9-
- cron: "0 6 * * MON"
9+
- cron: '0 6 * * MON'
1010
workflow_dispatch:
1111

1212
permissions:
@@ -25,25 +25,13 @@ jobs:
2525
- name: Checkout repository
2626
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
2727

28-
- name: Setup .NET SDK
29-
uses: actions/setup-dotnet@6bd8b7f7774af54e05809fcc5431931b3eb1ddee # v4.0.1
30-
31-
- name: Setup NuGet cache
32-
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
33-
with:
34-
path: ~/.nuget/packages
35-
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props') }}
36-
restore-keys: ${{ runner.os }}-nuget-
37-
3828
- name: Initialize CodeQL
3929
uses: github/codeql-action/init@afb54ba388a7dca6ecae48f608c4ff05ff4cc77a # v3.25.15
4030
with:
41-
languages: "csharp"
42-
43-
- name: Autobuild
44-
uses: github/codeql-action/autobuild@afb54ba388a7dca6ecae48f608c4ff05ff4cc77a # v3.25.15
31+
build-mode: none
32+
languages: 'csharp'
4533

4634
- name: Perform CodeQL Analysis
4735
uses: github/codeql-action/analyze@afb54ba388a7dca6ecae48f608c4ff05ff4cc77a # v3.25.15
4836
with:
49-
category: "/language:csharp"
37+
category: '/language:csharp'

0 commit comments

Comments
 (0)