Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make the invalid-publisher err msg more informative #13941

Merged
merged 6 commits into from Jun 15, 2023
Merged

Conversation

Signed-off-by: Keming <kemingy94@gmail.com>
@kemingy kemingy requested a review from a team as a code owner June 14, 2023 12:38
Signed-off-by: Keming <kemingy94@gmail.com>
Copy link
Member

@woodruffw woodruffw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PyPI admins are the ultimate arbiters here, but I'm personally a -1 on the changes to the error messages here: I think they introduce more ambiguity than they resolve, unfortunately.

IMO a workable solution here would be to add another bulletpoint to the troubleshooting docs explicitly mentioning that any environment configured on PyPI needs to match the CI job's environment, and then include the troubleshooting URL in the error render on the gh-action-pypi-publish side.

In other words: IMO this change should be docs-only, and should be accompanied by a separate PR to the gh-action-pypi-publish action that updates the error message to include a link to the troubleshooting docs.

tests/unit/oidc/test_views.py Outdated Show resolved Hide resolved
Signed-off-by: Keming <kemingy94@gmail.com>
@kemingy kemingy requested a review from woodruffw June 14, 2023 14:13
docs/user/trusted-publishers/troubleshooting.md Outdated Show resolved Hide resolved
docs/user/trusted-publishers/troubleshooting.md Outdated Show resolved Hide resolved
docs/user/trusted-publishers/using-a-publisher.md Outdated Show resolved Hide resolved
Co-authored-by: Dustin Ingram <di@users.noreply.github.com>
@kemingy kemingy requested a review from di June 15, 2023 00:52
@di di merged commit 5548c65 into pypi:main Jun 15, 2023
17 checks passed
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.

None yet

3 participants