Webhooks: user email property #11960

Closed
opened 2025-11-02 09:52:56 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @SunnyWolf on GitHub (Nov 5, 2023).

Description

I am using gogs webhooks to integrate gitea events to Bitrix24.
I noticed some strange in json POST request.

X-Gogs-Event: pull_request
...
{
  "action": "opened",
  "number": 3,
  "pull_request": {
    ...
    "user": {
      ...
      "email": "user@noreplycompanydomain.ru",
      ...
    },
...
}

All structures with user info contains field email with wrong email. In my case sevice takes NO_REPLY_ADDRESS variable and put it after user name.
In Config Cheats page there is such description:

NO_REPLY_ADDRESS: noreply.DOMAIN Value for the domain part of the user's email address in the Git log if user has set KeepEmailPrivate to true. DOMAIN resolves to the value in server.DOMAIN. The user's email will be replaced with a concatenation of the user name in lower case, "@" and NO_REPLY_ADDRESS.

I checked KeepEmailPrivate property for account and it is disabled.

Also same could be discovered on test server
https://try.gitea.io/user/settings/hooks/1306

Gitea Version

1.20.5

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

No response

Operating System

Windows

How are you running Gitea?

Windows build

Database

PostgreSQL

Originally created by @SunnyWolf on GitHub (Nov 5, 2023). ### Description I am using gogs webhooks to integrate gitea events to Bitrix24. I noticed some strange in json POST request. ``` X-Gogs-Event: pull_request ... { "action": "opened", "number": 3, "pull_request": { ... "user": { ... "email": "user@noreplycompanydomain.ru", ... }, ... } ``` All structures with user info contains field **email** with wrong email. In my case sevice takes **NO_REPLY_ADDRESS** variable and put it after user name. In [Config Cheats](https://docs.gitea.com/next/administration/config-cheat-sheet) page there is such description: ``` NO_REPLY_ADDRESS: noreply.DOMAIN Value for the domain part of the user's email address in the Git log if user has set KeepEmailPrivate to true. DOMAIN resolves to the value in server.DOMAIN. The user's email will be replaced with a concatenation of the user name in lower case, "@" and NO_REPLY_ADDRESS. ``` I checked KeepEmailPrivate property for account and it is disabled. Also same could be discovered on test server https://try.gitea.io/user/settings/hooks/1306 ### Gitea Version 1.20.5 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version _No response_ ### Operating System Windows ### How are you running Gitea? Windows build ### Database PostgreSQL
GiteaMirror added the type/bug label 2025-11-02 09:52:56 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#11960