Skip to content

Commit d24005d

Browse files
committed
Update GitHub Actions to use .NET 8 and newer action versions
1 parent 86a59c0 commit d24005d

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.github/workflows/dotnet-core.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v2
15+
- uses: actions/checkout@v4
1616
- name: Check for secrets leak on the repo
1717
run: |
1818
git clone https://github.com/awslabs/git-secrets.git target
@@ -23,14 +23,10 @@ jobs:
2323
echo "Added aws secret templates"
2424
git secrets --scan -r ../
2525
echo "Repository scan completed"
26-
- name: Setup .NET Core
27-
uses: actions/setup-dotnet@v1
26+
- name: Setup .NET 8
27+
uses: actions/setup-dotnet@v4
2828
with:
29-
dotnet-version: 3.1.301
30-
- name: Setup .NET Core 5
31-
uses: actions/setup-dotnet@v1
32-
with:
33-
dotnet-version: 5.0.301
29+
dotnet-version: '8.0.x'
3430
- name: Install dependencies
3531
run: dotnet restore RecommendationTools/RecommendationValidator/RecommendationValidator.csproj
3632
- name: Validate

RecommendationTools/RecommendationValidator/RecommendationValidator.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>netcoreapp3.1</TargetFramework>
5+
<TargetFramework>net8.0</TargetFramework>
66
</PropertyGroup>
77

88
<ItemGroup>

0 commit comments

Comments
 (0)