Skip to content

Commit 0d3271f

Browse files
committed
Fix release.yml: restore contents:write permission on publish job
Job-level permissions replace workflow-level ones entirely rather than merging with them - adding id-token:write for OIDC silently dropped the contents:write needed by action-gh-release, causing a 403 when creating the GitHub Release after a successful NuGet push.
1 parent 7791601 commit 0d3271f

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
environment: nuget-release
6161
permissions:
6262
id-token: write # required to request the GitHub OIDC token for NuGet Trusted Publishing
63+
contents: write # required by softprops/action-gh-release to create the GitHub Release
6364
steps:
6465
- uses: actions/download-artifact@v8
6566
with:

0 commit comments

Comments
 (0)