Skip to content

Commit 84ba1e5

Browse files
authored
Update codeql-analysis.yml
1 parent 7f5bc30 commit 84ba1e5

File tree

1 file changed

+15
-8
lines changed

1 file changed

+15
-8
lines changed

.github/workflows/codeql-analysis.yml

+15-8
Original file line numberDiff line numberDiff line change
@@ -40,44 +40,51 @@ jobs:
4040
steps:
4141
- name: Checkout repository
4242
uses: actions/checkout@v2
43+
44+
- name: "Set .NET target"
45+
uses: UseDotNet@2
46+
with:
47+
packageType: 'sdk'
48+
version: '6.0.x'
49+
includePreviewVersions: True
4350

4451
# Initializes the CodeQL tools for scanning.
45-
- name: Initialize CodeQL
52+
- name: "Initialize CodeQL"
4653
uses: github/codeql-action/init@v1
4754
with:
4855
languages: ${{ matrix.language }}
4956
# If you wish to specify custom queries, you can do so here or in a config file.
5057
# By default, queries listed here will override any specified in a config file.
5158
# Prefix the list here with "+" to use these queries and those in the config file.
5259
# queries: ./path/to/local/query, your-org/your-repo/queries@main
53-
- name: Setup NuGet
60+
- name: "Setup NuGet"
5461
uses: nuget/setup-nuget@v1
5562
with:
5663
nuget-version: '5.x'
5764
dotnet-version: '6.0'
5865
include-prerelease: True
5966

60-
- name: Setup MSBuild
67+
- name: "Setup MSBuild"
6168
uses: microsoft/setup-msbuild@v1
6269

63-
- name: NuGet Caching
70+
- name: "NuGet Caching"
6471
uses: actions/cache@v2
6572
with:
6673
path: ~/.nuget/packages
6774
key: ${{ runner.os }}-nuget-${{ hashFiles('**/ClipboardCanvas/Package.appxmanifest') }}
6875
restore-keys: |
6976
${{ runner.os }}-nuget-
7077
71-
- name: Restore NuGet for Solution
78+
- name: "Restore NuGet for Solution"
7279
run: nuget restore -LockedMode ClipboardCanvas.sln
7380

74-
- name: Perform Project Build
81+
- name: "Perform Project Build"
7582
run: |
7683
msbuild ClipboardCanvas.sln -nologo -nr:false -m -t:build -t:_GenerateAppxPackage -p:Configuration=Release -p:Platform=x64 -p:AppxBundle=Always -p:AppxBundlePlatforms=x64
7784
7885
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
7986
# If this step fails, then you should remove it and run the build manually (see below)
80-
- name: Autobuild
87+
- name: "Autobuild"
8188
uses: github/codeql-action/autobuild@v1
8289

8390
# ℹ️ Command-line programs to run using the OS shell.
@@ -91,5 +98,5 @@ jobs:
9198
# make bootstrap
9299
# make release
93100

94-
- name: Perform CodeQL Analysis
101+
- name: "Perform CodeQL Analysis"
95102
uses: github/codeql-action/analyze@v1

0 commit comments

Comments
 (0)