Skip to content

Commit beb210d

Browse files
committed
Update workflows and JwtBearer package versions
- Refactored GitHub Actions workflows to use softprops/action-gh-release@v2, unified permissions to contents: write, and standardized release step parameters. - Updated Microsoft.AspNetCore.Authentication.JwtBearer to latest patch versions for .NET 8.0, 9.0, and 10.0 in Abstractions project.
1 parent fa7e636 commit beb210d

File tree

4 files changed

+17
-23
lines changed

4 files changed

+17
-23
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: Publish SimpleAuthentication on NuGet
22

33
permissions:
4-
contents: read
5-
packages: write
6-
actions: write
4+
contents: write
75

86
on:
97
push:
@@ -47,11 +45,11 @@ jobs:
4745
run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
4846

4947
- name: Create release
50-
uses: actions/create-release@v1
48+
uses: softprops/action-gh-release@v2
5149
env:
52-
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5351
with:
5452
tag_name: v${{ steps.nbgv.outputs.NuGetPackageVersion }}
55-
release_name: ${{ env.RELEASE_NAME }} ${{ steps.nbgv.outputs.NuGetPackageVersion }}
53+
name: ${{ env.RELEASE_NAME }} ${{ steps.nbgv.outputs.NuGetPackageVersion }}
5654
draft: false
5755
prerelease: false

.github/workflows/publish_abstractions.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: Publish Abstractions on NuGet
22

33
permissions:
4-
contents: read
5-
packages: write
6-
actions: write
4+
contents: write
75

86
on:
97
push:
@@ -48,11 +46,11 @@ jobs:
4846
run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
4947

5048
- name: Create release
51-
uses: actions/create-release@v1
49+
uses: softprops/action-gh-release@v2
5250
env:
53-
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5452
with:
55-
tag_name: ${{ env.TAG_NAME }}_v${{ steps.nbgv.outputs.NuGetPackageVersion }}
56-
release_name: ${{ env.RELEASE_NAME }} ${{ steps.nbgv.outputs.NuGetPackageVersion }}
53+
tag_name: v${{ steps.nbgv.outputs.NuGetPackageVersion }}
54+
name: ${{ env.RELEASE_NAME }} ${{ steps.nbgv.outputs.NuGetPackageVersion }}
5755
draft: false
5856
prerelease: false

.github/workflows/publish_swashbuckle.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
name: Publish Swashbuckle for Simple Authentication on NuGet
22

33
permissions:
4-
contents: read
5-
packages: write
6-
actions: write
4+
contents: write
75

86
on:
97
push:
@@ -48,11 +46,11 @@ jobs:
4846
run: dotnet nuget push *.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json
4947

5048
- name: Create release
51-
uses: actions/create-release@v1
49+
uses: softprops/action-gh-release@v2
5250
env:
53-
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5452
with:
55-
tag_name: ${{ env.TAG_NAME }}_v${{ steps.nbgv.outputs.NuGetPackageVersion }}
56-
release_name: ${{ env.RELEASE_NAME }} ${{ steps.nbgv.outputs.NuGetPackageVersion }}
53+
tag_name: v${{ steps.nbgv.outputs.NuGetPackageVersion }}
54+
name: ${{ env.RELEASE_NAME }} ${{ steps.nbgv.outputs.NuGetPackageVersion }}
5755
draft: false
5856
prerelease: false

src/SimpleAuthentication.Abstractions/SimpleAuthentication.Abstractions.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@
2828
</ItemGroup>
2929

3030
<ItemGroup Condition="'$(TargetFramework)' == 'net8.0'">
31-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.22" />
31+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="8.0.23" />
3232
</ItemGroup>
3333

3434
<ItemGroup Condition="'$(TargetFramework)' == 'net9.0'">
35-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="9.0.11" />
35+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="9.0.12" />
3636
</ItemGroup>
3737

3838
<ItemGroup Condition="'$(TargetFramework)' == 'net10.0'">
39-
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="10.0.1" />
39+
<PackageReference Include="Microsoft.AspNetCore.Authentication.JwtBearer" Version="10.0.2" />
4040
</ItemGroup>
4141

4242
<ItemGroup>

0 commit comments

Comments
 (0)