Skip to content

Fix trusted-publishing docs: policy names build-release-task.yml - #205

Merged
ptr727 merged 1 commit into
developfrom
fix/trusted-publishing-workflow-docs
Jun 28, 2026
Merged

Fix trusted-publishing docs: policy names build-release-task.yml#205
ptr727 merged 1 commit into
developfrom
fix/trusted-publishing-workflow-docs

Conversation

@ptr727

@ptr727 ptr727 commented Jun 28, 2026

Copy link
Copy Markdown
Owner

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 name build-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 to build-release-task.yml; this corrects WORKFLOW.md D4.7 / section 6 and configure.sh to match.

🤖 Generated with Claude Code

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>
Copilot AI review requested due to automatic review settings June 28, 2026 00:38

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 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.md to state the NuGet.org trusted-publishing policy must name build-release-task.yml (the reusable workflow referenced by job_workflow_ref), not publish-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.

@ptr727
ptr727 merged commit c8f20b1 into develop Jun 28, 2026
11 checks passed
@ptr727
ptr727 deleted the fix/trusted-publishing-workflow-docs branch June 28, 2026 00:41
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