Skip to content

GitHub repository in Trusted Publisher should (probably) be case insensitive #15498

@woodruffw

Description

@woodruffw

From pypa/gh-action-pypi-publish#217: some users configure their trusted publisher with a different casing than their actual GitHub repository (e.g. the repo might be Bar and they configure bar).

GitHub appears to treat these names as equivalent (repo names appear to be case insensitive generally), but PyPI performs a case sensitive comparison. As a result, some trusted publishing activities are erroneously rejected, as in the linked issue.

I think the fix here is just to switch to case insensitive comparisons on the repository claim, and (maybe?) on the repository_owner as well.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions