-
-
Notifications
You must be signed in to change notification settings - Fork 275
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
Add trusted publisher support #1578
Conversation
✅ Deploy Preview for maturin-guide ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
bors r+ |
Build succeeded: |
) -> (String, String) { | ||
// API token from environment variable takes priority | ||
if let Ok(token) = env::var("MATURIN_PYPI_TOKEN") { | ||
return ("__token__".to_string(), token); | ||
} | ||
|
||
// Try to get a token via OIDC exchange | ||
match resolve_pypi_token_via_oidc(registry_url) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what happens if someone uses this with a registry that isn't pypi?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It will print a failure warning, but we can certainly do better to not show a warning. I'll improve it later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you!
Closes #1575