Fix trusted-publishing docs: policy names build-release-task.yml - #205
Merged
Conversation
The OIDC token is requested by NuGet/login inside the reusable build-release-task.yml, so its job_workflow_ref names that file, not the publish-release.yml entry workflow. The NuGet.org trusted-publishing policy must therefore name build-release-task.yml. The first publish failed with HTTP 401 against a publish-release.yml policy. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the CI/CD operational documentation to match how NuGet.org OIDC trusted publishing validates job_workflow_ref, ensuring the documented NuGet policy points at the reusable workflow that actually requests the token.
Changes:
- Update
WORKFLOW.mdto state the NuGet.org trusted-publishing policy must namebuild-release-task.yml(the reusable workflow referenced byjob_workflow_ref), notpublish-release.yml. - Align
repo-config/configure.sh’s manual verification checklist note with the corrected workflow filename.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| WORKFLOW.md | Corrects the documented NuGet.org trusted-publishing workflow filename to match the reusable workflow used for OIDC token exchange. |
| repo-config/configure.sh | Updates the manual verification note to reference build-release-task.yml for the NuGet trusted-publishing policy. |
This was referenced Jun 29, 2026
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.
The OIDC token is requested by
NuGet/logininside the reusablebuild-release-task.yml, so itsjob_workflow_refnames that file, not thepublish-release.ymlentry workflow. The NuGet.org trusted-publishing policy must namebuild-release-task.yml.Found by the first real publish (1.5 prerelease on develop):
Token exchange failed (HTTP 401) ... Workflow mismatch for policy 'LanguageTags': expected 'publish-release.yml', actual 'build-release-task.yml'. Policy already repointed tobuild-release-task.yml; this corrects WORKFLOW.md D4.7 / section 6 andconfigure.shto match.🤖 Generated with Claude Code