Commit 43f3508
Use NuGet trusted publishing (OIDC) for nuget.org push
Replaces the long-lived NUGET_TOKEN secret with a short-lived API key
obtained via GitHub Actions OIDC through the NuGet/login action, per
https://learn.microsoft.com/en-us/nuget/nuget-org/trusted-publishing.
The GitHub Packages push is unaffected and still uses GITHUB_TOKEN.
Requires a NUGET_USER repo secret (nuget.org username) and a Trusted
Publishing policy configured on nuget.org for this repo/workflow file.
The NUGET_TOKEN secret can be removed once this is verified working.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent fed8989 commit 43f3508
1 file changed
Lines changed: 14 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
148 | | - | |
| 147 | + | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
154 | 164 | | |
155 | 165 | | |
156 | 166 | | |
| |||
0 commit comments