Skip to content

Commit 788952a

Browse files
committed
add a more useful global.json and pin third party action
1 parent 3b85f76 commit 788952a

File tree

3 files changed

+8
-10
lines changed

3 files changed

+8
-10
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ jobs:
1616

1717
- name: Setup .NET
1818
uses: actions/setup-dotnet@v4
19-
with:
20-
dotnet-version: 9.0.x
2119

2220
- name: Build Unit Tests .NET
2321
run: dotnet build -f net9.0 test/Renci.SshNet.Tests/
@@ -65,8 +63,6 @@ jobs:
6563

6664
- name: Setup .NET
6765
uses: actions/setup-dotnet@v4
68-
with:
69-
dotnet-version: 9.0.x
7066

7167
- name: Build Solution
7268
run: dotnet build Renci.SshNet.sln
@@ -118,11 +114,9 @@ jobs:
118114

119115
- name: Setup .NET
120116
uses: actions/setup-dotnet@v4
121-
with:
122-
dotnet-version: 9.0.x
123117

124118
- name: Setup WSL2
125-
uses: Vampire/setup-wsl@v5
119+
uses: Vampire/setup-wsl@f40fb59d850112c9a292b0218bca8271305b9127 # v5.0.0
126120
with:
127121
distribution: Ubuntu-24.04
128122

.github/workflows/docs.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,8 @@ jobs:
2727
- name: Setup Pages
2828
uses: actions/configure-pages@v5
2929

30-
- name: Setup .NET 8.0
30+
- name: Setup .NET
3131
uses: actions/setup-dotnet@v4
32-
with:
33-
dotnet-version: 8.x
3432

3533
- name: Setup docfx
3634
run: dotnet tool update -g docfx

global.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"sdk": {
3+
"version": "9.0.200",
4+
"rollForward": "latestFeature"
5+
}
6+
}

0 commit comments

Comments
 (0)