Skip to content

docs: record trusted publishing as configured - #30

Merged
ivanvyd merged 1 commit into
mainfrom
docs/trusted-publishing-env-optional
Aug 1, 2026
Merged

docs: record trusted publishing as configured#30
ivanvyd merged 1 commit into
mainfrom
docs/trusted-publishing-env-optional

Conversation

@ivanvyd

@ivanvyd ivanvyd commented Aug 1, 2026

Copy link
Copy Markdown
Owner

All three prerequisites now exist — the nuget.org policy, the NUGET_USER secret, and the nuget environment with ivanvyd as required reviewer. RELEASING.md still warned that none of it was set up.

On the Environment field

The policy's Environment is set to nuget rather than left blank. Both work — nuget.org only checks the token's environment claim when the policy supplies a filter — but setting it narrows the policy so a token minted from any other environment is rejected.

That makes environment: nuget in the publish job load-bearing: removing it would change the token's claim and the policy would stop matching. The doc now says so, because that line otherwise reads as boilerplate someone could tidy away.

Also

Notes to leave Prevent self-review off. With a single reviewer it secures nothing and just makes publishing impossible.

All three prerequisites now exist: the nuget.org policy, the NUGET_USER secret,
and the nuget environment with a required reviewer. RELEASING.md still warned
that none of it was set up.

The policy's Environment field is set to nuget rather than left blank. Both
work -- nuget.org only checks the environment claim when the policy supplies a
filter -- but setting it narrows the policy so a token minted from any other
environment is rejected. That makes environment: nuget load-bearing in the
publish job: removing it would change the claim and the policy would stop
matching. Said so explicitly, because the line looks like boilerplate.

Also notes to leave Prevent self-review off. With a single reviewer it does not
secure anything, it just makes publishing impossible.
@ivanvyd
ivanvyd merged commit 48ae454 into main Aug 1, 2026
10 checks passed
@ivanvyd
ivanvyd deleted the docs/trusted-publishing-env-optional branch August 1, 2026 10:50
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