Skip to content

Commit e37d783

Browse files
erwan-jolyclaude
andauthored
ci: drop broken REPO_TOKEN, grant contents:write instead (#117)
The release asset upload was hitting 'Bad credentials' because secrets.REPO_TOKEN is expired / not set. Remove the explicit token override and add job-level contents:write so the default GITHUB_TOKEN has enough scope to create the GitHub release. NuGet push is unaffected and already worked via NUGET_API_KEY. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9131415 commit e37d783

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/dotnet.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
jobs:
1212
build:
1313
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
1416
steps:
1517
- uses: actions/checkout@v5
1618
- name: Setup .NET
@@ -47,5 +49,4 @@ jobs:
4749
uses: softprops/action-gh-release@v2
4850
with:
4951
files: ${{ steps.build_artifact.outputs.ARTIFACT_PATH }}
50-
token: ${{ secrets.REPO_TOKEN }}
5152

0 commit comments

Comments
 (0)