feat: add PyPI trusted publishing instructions#1845
Merged
Conversation
Add instructions for configuring PyPI trusted publishing when users run `speakeasy configure publishing` with a Python target that has `useTrustedPublishing: true` configured. The instructions guide users to: 1. Navigate to PyPI project settings 2. Add GitHub Actions as a trusted publisher 3. Configure the correct owner, repo, and workflow name 4. Verify attestations after publishing Also updates sdk-gen-config dependency to include the new `UseTrustedPublishing` field on the PyPi publishing config. Co-Authored-By: Claude <noreply@anthropic.com>
Reference: dotnet/sdk#44957 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
vishalg0wda
approved these changes
Feb 4, 2026
Keep configureTargetNonInteractive function from main while preserving ConfigurePublishingFlags parameter type for configurePublishing function. Co-Authored-By: Claude Opus 4.5 <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
Adds instructions for configuring PyPI trusted publishing when users run
speakeasy configure publishingwith a Python target that hasuseTrustedPublishing: trueconfigured.Changes
PyPITrustedPublishingConfigstructgetPyPITrustedPublishingInstructions()function that generates user-facing instructionsconfigurePublishing()to detect PyPI trusted publishing configs and display setup instructionsUseTrustedPublishingfield)Instructions Output
When a user has configured trusted publishing, they'll see:
Related PRs
🤖 Generated with Claude Code