Skip to content

Use trusted publishing for release publish job - #28

Merged
adamsitnik merged 1 commit into
CommunityToolkit:mainfrom
adamsitnik:copilot/update-release-workflow
Jul 13, 2026
Merged

adamsitnik merged 1 commit into
CommunityToolkit:mainfrom
adamsitnik:copilot/update-release-workflow

Conversation

@adamsitnik

Copy link
Copy Markdown
Contributor

@adamsitnik
adamsitnik requested a review from Copilot July 13, 2026 11:14
@adamsitnik adamsitnik changed the title Use trusted publishing for dotnet-release publish job Use trusted publishing for release publish job Jul 13, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the NuGet publishing flow in the reusable release workflow to use NuGet.org trusted publishing (OIDC) instead of a long-lived API key secret, aligning this repo’s release pipeline with the referenced Aspire approach.

Changes:

  • Replaced the NUGET_PACKAGE_PUSH_TOKEN secret requirement with NUGET_USER for NuGet OIDC login.
  • Added NuGet/login@v1 step to obtain a short-lived NuGet API key via OIDC and used it for dotnet nuget push.
  • Scoped the publish job permissions to include id-token: write for OIDC.

@adamsitnik
adamsitnik merged commit eb79f37 into CommunityToolkit:main Jul 13, 2026
2 checks passed
@adamsitnik
adamsitnik deleted the copilot/update-release-workflow branch July 13, 2026 11:18
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.

3 participants