Skip to content

FOUNDATIONS: NugetTrustedPublishingJob - #184

Merged
cjdutoit merged 4 commits into
The-Standard-Organization:mainfrom
morgang-adappt:users/morgang-adappt/foundations-nugettrustedpublishingjob
Oct 8, 2026
Merged

cjdutoit merged 4 commits into
The-Standard-Organization:mainfrom
morgang-adappt:users/morgang-adappt/foundations-nugettrustedpublishingjob

Conversation

@morgang-adappt

@morgang-adappt morgang-adappt commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

closes #184

Merge after the TagJobV3 PR. This branch is built on it, so its commits show here until it merges.

  • NugetTrustedPublishingJob: publishes with NuGet Trusted Publishing. It sets permissions: id-token: write, gets a short-lived key from NuGet/login@v1 and pushes with it, so no long-lived NuGet API key is needed.
  • PublishJobV4: marked obsolete, pointing to NugetTrustedPublishingJob.
  • Infrastructure: ScriptGenerationService uses NugetTrustedPublishingJob, and build.yml is regenerated. ADotNet's publish job uses NUGET_USER instead of NUGET_ACCESS.
  • Documentation: Documentation/Models/Pipelines/GithubPipelines/DotNets/NugetTrustedPublishingJob.md.

Needed before the RELEASES PR: the owner of the ADotNet package on nuget.org must:

  • add a Trusted Publishing policy (Repository Owner The-Standard-Organization, Repository ADotNet, Workflow File build.yml, Environment empty);
  • add a NUGET_USER secret (the nuget.org profile name) at org or repo level.

@cjdutoit
cjdutoit merged commit 405a633 into The-Standard-Organization:main Oct 8, 2026
6 checks passed
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.

2 participants