Skip to content

Commit 455541e

Browse files
authored
Merge pull request #89 from github/ikewalker-patch-1
Set explicit permissions for workflow
2 parents 42ac2b6 + 0168f73 commit 455541e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
release:
55
types: [published]
66

7+
permissions: write-all
8+
79
jobs:
810
build:
911
runs-on: ubuntu-latest
@@ -20,4 +22,4 @@ jobs:
2022
- name: Pack nugets
2123
run: dotnet pack -c Release --no-build --output .
2224
- name: Push to NuGet
23-
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
25+
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)