ci: upgrade devops-templates to v10.0 with NuGet trusted publishing#74
Merged
Conversation
Split publish jobs into build (shared template) and push (composite action) so OIDC job_workflow_ref matches the NuGet trusted publisher policy. Version-bump-only for pr-build, pr-title-check, release-drafter. Includes package updates from Directory.Packages.props. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Upgrades all
devops-templatesreferences fromv8.1tov10.0and converts the publish flows to use NuGet Trusted Publishing (OIDC) via thenuget-pushcomposite action. Also includes pending package updates fromDirectory.Packages.props.Changes
publish-preview.yamlandpublish-release.yaml— structural changepublishjob tobuild; shared template now handles build/test/pack/artifact upload onlypushjob usingnuget-push@v10.0composite action for OIDC login and NuGet pushpermissions: write-allto least-privilege per jobpr-build.yaml,pr-title-check.yaml,release-drafter.yaml— version bump only@v8.1→@v10.0, no other changesDirectory.Packages.props— package updatesValidation
The same
build+pushjob pattern was validated end-to-end onLayeredCraft/compact-json-formatterwith the same template version and composite action before applying here.Notes for Reviewers
NuGet.org trusted publisher entries for this repo will need to be configured pointing at
.github/workflows/publish-preview.yamland.github/workflows/publish-release.yamlbefore the push jobs will succeed.🤖 Generated with Claude Code