Skip to content

feat(nuget)!: require NUGET_USER, remove NUGET_TOKEN - #1098

Closed
samtrion wants to merge 1 commit into
mainfrom
feat/nuget-user-required
Closed

samtrion wants to merge 1 commit into
mainfrom
feat/nuget-user-required

Conversation

@samtrion

@samtrion samtrion commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #1097. Trusted Publishing becomes the only auth method.

  • NUGET_USER secret now required, NUGET_TOKEN removed from publish-nuget.yml and step-dotnet-publish-nuget.yml
  • NuGet/login runs unconditionally; the API key comes solely from its output
  • README and docs updated

Breaking: all callers need NUGET_USER, id-token: write and a nuget.org Trusted Publishing policy. Merge only after every consumer is migrated (dailydevops/defaults#698 is the first).

Trusted Publishing is now the only supported authentication.

BREAKING CHANGE: callers must provide the NUGET_USER secret and a
Trusted Publishing policy on nuget.org. NUGET_TOKEN is no longer
accepted.
@samtrion

samtrion commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

Superseded: reusable workflows cannot be used with NuGet Trusted Publishing, see the composite action PR.

@samtrion samtrion closed this Nov 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant