Skip to content

feat(nuget): add composite action for Trusted Publishing - #1099

Merged
samtrion merged 1 commit into
mainfrom
feat/nuget-publish-action
Nov 6, 2026
Merged

samtrion merged 1 commit into
mainfrom
feat/nuget-publish-action

Conversation

@samtrion

@samtrion samtrion commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

NuGet Trusted Publishing validates the repository ID of the caller and job_workflow_ref of the called workflow. With a reusable workflow these never match the same policy (observed in dailydevops/defaults run 42243779483).

A composite action executes inside the caller's job, so job_workflow_ref is the caller's workflow file and one policy matches.

NuGet Trusted Publishing does not support reusable workflows: the
repository claim points at the caller while job_workflow_ref points at
the called workflow, so no policy can match both. A composite action runs
in the caller's job and avoids the mismatch.
@samtrion
samtrion merged commit b5bbe25 into main Nov 6, 2026
13 checks passed
@samtrion
samtrion deleted the feat/nuget-publish-action branch November 6, 2026 20:44
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.

1 participant