Commit f9a75ff
committed
ci: authenticate to NuGet feeds before restore
The build jobs restore packages from an authenticated Azure Artifacts
feed, which requires the Azure Artifacts credential provider to be
primed first. Without it the restore falls back to anonymous access and
fails on a private feed.
Run NuGetAuthenticate once at the start of each job that restores
(Windows, macOS, Linux, and the .NET tool packaging job) so every
subsequent dotnet restore/publish is authenticated. The release-stage
NuGet publish job is unaffected: it pushes via the 1ES service
connection rather than a restore.
Assisted-by: Claude Opus 4.8
Signed-off-by: Matthew John Cheetham <mjcheetham@outlook.com>1 parent 1afccdf commit f9a75ff
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| 137 | + | |
| 138 | + | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
| |||
282 | 284 | | |
283 | 285 | | |
284 | 286 | | |
| 287 | + | |
| 288 | + | |
285 | 289 | | |
286 | 290 | | |
287 | 291 | | |
| |||
437 | 441 | | |
438 | 442 | | |
439 | 443 | | |
| 444 | + | |
| 445 | + | |
440 | 446 | | |
441 | 447 | | |
442 | 448 | | |
| |||
524 | 530 | | |
525 | 531 | | |
526 | 532 | | |
| 533 | + | |
| 534 | + | |
527 | 535 | | |
528 | 536 | | |
529 | 537 | | |
| |||
0 commit comments