Commit 18098b6
ci: pass NuGet/login OIDC api key to dotnet nuget push
The previous run got past authentication (NuGet/login@v1 exchanged the
GitHub OIDC token for a short-lived NuGet.org API key) but then
`dotnet nuget push` had no way to use that key and got 401:
No API Key was provided and no API Key could be found for
'https://www.nuget.org/api/v2/package'
error: Response status code does not indicate success: 401
NuGet/login@v1 exposes the key via outputs.NUGET_API_KEY. Give the auth
step an `id`, plumb the output through an env var, and pass it to
`dotnet nuget push --api-key`.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 67918e8 commit 18098b6
1 file changed
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
90 | 91 | | |
91 | 92 | | |
| 93 | + | |
| 94 | + | |
92 | 95 | | |
93 | 96 | | |
94 | 97 | | |
| 98 | + | |
95 | 99 | | |
0 commit comments