Skip to content

Commit 1e85584

Browse files
Update .NET to 8.0.304 and add UseDotnet task to CI (#1691)
1 parent e79f6a2 commit 1e85584

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

.ci/ci.yml

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ stages:
3131

3232
steps:
3333

34+
- task: UseDotNet@2
35+
inputs:
36+
useGlobalJson: true
37+
3438
- pwsh: |
3539
Get-ChildItem -Path env:
3640
displayName: Capture environment for build

.github/workflows/codeql-analysis.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
security-events: write # for github/codeql-action/analyze to upload SARIF results
2525
name: Analyze
2626
runs-on: ubuntu-latest
27-
27+
2828
strategy:
2929
fail-fast: false
3030
matrix:
@@ -33,27 +33,31 @@ jobs:
3333
build-mode: manual
3434
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
3535
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
36-
36+
3737
steps:
3838
- name: Checkout repository
3939
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
4040

41+
- uses: actions/setup-dotnet@v4
42+
with:
43+
global-json-file: global.json
44+
4145
# Initializes the CodeQL tools for scanning.
4246
- name: Initialize CodeQL
4347
uses: github/codeql-action/init@d39d31e687223d841ef683f52467bd88e9b21c14 # v3.25.3
4448
with:
4549
languages: ${{ matrix.language }}
4650
# ℹ️ Command-line programs to run using the OS shell.
4751
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
48-
52+
4953
- run: |
5054
Get-ChildItem .
5155
name: Capture env
52-
56+
5357
- run: |
5458
.\build.ps1 -Clean -Build
5559
name: Build
56-
60+
5761
- name: Perform CodeQL Analysis
5862
uses: github/codeql-action/analyze@d39d31e687223d841ef683f52467bd88e9b21c14 # v3.25.3
5963
with:

global.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"sdk": {
3-
"version": "8.0.300"
3+
"version": "8.0.304"
44
}
55
}

0 commit comments

Comments
 (0)