Skip to content

Sending "GPG signature uploaded" email fails when using Trusted Publishing #14928

@di

Description

@di

Currently we return a 500-level failure if a user attempts to upload GPG signatures via Trusted Publishing, because we assume there is a request.user:

send_gpg_signature_uploaded_email(
request, request.user, project_name=project.name
)

However this might be None if Trusted Publishing is used, in which case the email should probably go to all owners instead.

Reported in #14927, this is https://python-software-foundation.sentry.io/share/issue/4680dcbcc9d348109307d6dc0d03f900/.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions