Skip to content

Commit 005685e

Browse files
committed
fix: provide permissions
1 parent 471ecb2 commit 005685e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/publish-nuget.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ on:
2525
jobs:
2626
build:
2727
runs-on: ubuntu-latest
28+
permissions:
29+
contents: read
2830

2931
steps:
3032
- uses: actions/checkout@v4
@@ -67,6 +69,8 @@ jobs:
6769
runs-on: ubuntu-latest
6870
# Only publish on version tags or manual trigger with version
6971
if: startsWith(github.ref, 'refs/tags/v') || (github.event_name == 'workflow_dispatch' && github.event.inputs.version != '')
72+
permissions:
73+
contents: write
7074

7175
steps:
7276
- name: Download artifacts
@@ -87,6 +91,4 @@ jobs:
8791
uses: softprops/action-gh-release@v2
8892
with:
8993
files: ./artifacts/*.nupkg
90-
generate_release_notes: true
91-
env:
92-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
94+
generate_release_notes: true

0 commit comments

Comments
 (0)