Skip to content

Fix users' noreply email address could be verified when sign with ssh key #35043

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

Closed
wants to merge 1 commit into from

Conversation

lunny
Copy link
Member

@lunny lunny commented Jul 11, 2025

Fix #21692

@lunny lunny added type/bug backport/v1.24 This PR should be backported to Gitea 1.24 labels Jul 11, 2025
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jul 11, 2025
@github-actions github-actions bot added the modifies/go Pull requests that update Go code label Jul 11, 2025
@lunny lunny removed the backport/v1.24 This PR should be backported to Gitea 1.24 label Jul 11, 2025
IsActivated: true,
Email: committerUser.GetPlaceholderEmail(),
})

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think the fix is good.

When parseCommitWithSSHSignature is called, we already know that committerUser belongs to git commit. The whole committerEmailAddresses logic should be removed.

@wxiaoguang
Copy link
Contributor

-> Fix user's sign email check #35045

@wxiaoguang wxiaoguang closed this Jul 11, 2025
@lunny lunny deleted the lunny/fix_noreply_email_address branch July 11, 2025 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. modifies/go Pull requests that update Go code type/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Include NOREPLY address when parsing SSH signature
3 participants