You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Changed
Template feed credentials (%VARIABLE% values in packageSourceCredentials) are only used from your user-level or machine-wide NuGet config, and only for a feed defined over HTTPS in the same file.
When a NuGet config file is present in the working directory or any directory above it, or that cannot be verified, template feeds are used without credentials. A one-time warning explains how to move feeds and %TOKEN% credentials into the user-level config.
On Windows the user-level config is read from %APPDATA%\NuGet\NuGet.Config; the previous %USERPROFILE%\.nuget\NuGet\NuGet.Config location is still read with lower precedence.
Feed discovery reads source names and URLs as before; additional source attributes such as minPublishAgeHours no longer affect it.
If CI relied on a repository nuget.config with %TOKEN% credentials for template feeds, define that feed and its credentials in the user-level NuGet config of the build agent instead.
Security
Repository or directory-level NuGet configuration can no longer cause environment values to be sent as template feed credentials.