Skip to content

Commit 8ab3655

Browse files
erwan-jolyclaude
andauthored
ci: grant contents:write so release asset upload doesn't 401 (#441)
The softprops/action-gh-release step falls back to GITHUB_TOKEN, which under the org's default-read workflow policy lacks release-creation scope. Add explicit job-level permissions so the tag-triggered run can create the GitHub release alongside the NuGet push. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent e2972b0 commit 8ab3655

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/dotnet.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
1315
steps:
1416
- uses: actions/checkout@v4
1517
- name: Setup .NET

0 commit comments

Comments
 (0)