Skip to content

Report the OIDC claims PyPI rejected - #93

Closed
mmshad wants to merge 1 commit into
mainfrom
oidc-claims-check
Closed

Report the OIDC claims PyPI rejected#93
mmshad wants to merge 1 commit into
mainfrom
oidc-claims-check

Conversation

@mmshad

@mmshad mmshad commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Temporary, to be removed once it has answered its question. Not for merge as it stands.

The 0.1.1 publish failed at the token exchange with an unknown trusted publishing issuer. Every claim PyPI printed back matches the registered publisher, so the issuer itself is what PyPI does not accept, and the run log does not name it.

  • one job, one step: mint an OIDC token for the pypi audience and print the issuer, audience, subject, repository and ref
  • the token is never printed, only those claims
  • runs only when this file changes, so it stays out of the way of other pull requests

The subject claim in the failed run carried numeric owner and repository ids, which is an enterprise level claim setting, so the issuer is likely carrying an enterprise suffix that PyPI does not know. This confirms or rules that out.

Temporary. The 0.1.1 publish failed on an unknown issuer, which the run
log does not name. This prints the issuer and audience of the token
GitHub mints here, and is removed once that is known.
@mmshad

mmshad commented Aug 5, 2026

Copy link
Copy Markdown
Contributor Author

Answered: the issuer is https://token.actions.githubusercontent.com/harvard-university, which PyPI does not accept. Nothing to merge.

@mmshad mmshad closed this Aug 5, 2026
@mmshad
mmshad deleted the oidc-claims-check branch August 5, 2026 23:02
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