Skip to content

Commit 1d074dd

Browse files
JusterZhuclaude
andcommitted
fix(ci): remove --api-key to use nuget.org Trusted Publishing (OIDC)
- The --api-key parameter triggers API key auth, not OIDC - OIDC requires id-token: write (already added) and NO api-key - nuget.org Trusted Publisher is configured for this repo Co-Authored-By: Claude <noreply@anthropic.com>
1 parent e7e972f commit 1d074dd

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

.github/workflows/dotnet-ci.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ jobs:
6363
foreach ($nupkg in $nupkgs) {
6464
Write-Host "推送 $($nupkg.Name)..."
6565
dotnet nuget push $nupkg.FullName `
66-
--api-key azure `
6766
--source https://api.nuget.org/v3/index.json `
6867
--skip-duplicate
6968
}

0 commit comments

Comments
 (0)