codex - 💡(How to fix) Fix Default git identity `[email protected]` silently misattributes commits to unrelated third-party GitHub user [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#18095Fetched 2026-04-17 08:33:03
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Author
Participants
Timeline (top)
labeled ×2

Codex ships with a default git identity of:

user.name = Codex Test user.email = [email protected]

Any user who runs Codex before manually setting git config user.email produces commits authored by this placeholder. Because example.com is a reserved domain (RFC 2606) that OpenAI does not own, the string [email protected] has been claimed on the public profile of an unrelated
GitHub user — resulting in silent commit misattribution across Codex users.

Reproduction

  1. Install Codex (CLI or cloud environment) and run it in a fresh repo without overriding git identity.
  2. Make any commit through Codex.
  3. Inspect the commit:
    git log -1 --pretty=fuller
    Author: Codex Test [email protected]

Commit: Codex Test [email protected]

  1. Push to GitHub and open the commit in any downstream tool that resolves author email to a GitHub profile (Vercel, GitHub API consumers, CI dashboards).

Observed behavior

  • GitHub commit UI renders the raw string "Codex Test".
  • Vercel deployment details, GitHub API author.login, and various dashboards resolve the email [email protected] and display the GitHub user abiataprado — a stranger with no affiliation to our repository, organization, or OpenAI.
  • Concretely, merge commit 02bec15ec63e3af6e2a7a29b32fc21829bb47bb7 in our repo shows this behavior: the merge itself is authored by me, but it includes a Codex-authored commit (f04be8c1) with [email protected], and Vercel surfaces abiataprado's avatar on the deploy.

Expected behavior

Codex should ship with a default identity on a domain OpenAI controls so that attribution cannot be captured by third parties — for example:

user.name = Codex
user.email = [email protected]

Even better: on first run, detect missing user.email in the active repo and prompt the user to set one, so real contributors never ship with the placeholder in the first place.

Impact

  • Every Codex user who doesn't override the default leaks commit attribution to an unrelated account.
  • A stranger's GitHub avatar appears on production deploys, internal dashboards, and commit histories across many organizations.
  • Attribution cannot be corrected after the fact without rewriting history.
  • Not a security/access issue (no repo access, push rights, or webhooks granted), but a trust and identity-confusion issue affecting every Codex user with the default config.

Root cause

example.com is a reserved documentation domain (RFC 2606) with no MX records — no one can verify it via GitHub's email-verification flow. However, GitHub's public profile "email" field accepts any unverified string, and tools that resolve author emails to GitHub profiles match
against it. Because the default is on a domain OpenAI does not own, the association is first-come-first-served.

Suggested fix

  1. Replace the default user.email with an OpenAI-controlled address (e.g. [email protected]).
  2. On first use, if the active repo has no user.email set, prompt the user to configure one before making commits.
  3. Optionally, document the issue so existing users can check their local/global config.

Happy to provide additional commit SHAs or screenshots if useful.

Root Cause

Any user who runs Codex before manually setting git config user.email produces commits authored by this placeholder. Because example.com is a reserved domain (RFC 2606) that OpenAI does not own, the string [email protected] has been claimed on the public profile of an unrelated
GitHub user — resulting in silent commit misattribution across Codex users.

RAW_BUFFERClick to expand / collapse

Summary

Codex ships with a default git identity of:

user.name = Codex Test user.email = [email protected]

Any user who runs Codex before manually setting git config user.email produces commits authored by this placeholder. Because example.com is a reserved domain (RFC 2606) that OpenAI does not own, the string [email protected] has been claimed on the public profile of an unrelated
GitHub user — resulting in silent commit misattribution across Codex users.

Reproduction

  1. Install Codex (CLI or cloud environment) and run it in a fresh repo without overriding git identity.
  2. Make any commit through Codex.
  3. Inspect the commit:
    git log -1 --pretty=fuller
    Author: Codex Test [email protected]

Commit: Codex Test [email protected]

  1. Push to GitHub and open the commit in any downstream tool that resolves author email to a GitHub profile (Vercel, GitHub API consumers, CI dashboards).

Observed behavior

  • GitHub commit UI renders the raw string "Codex Test".
  • Vercel deployment details, GitHub API author.login, and various dashboards resolve the email [email protected] and display the GitHub user abiataprado — a stranger with no affiliation to our repository, organization, or OpenAI.
  • Concretely, merge commit 02bec15ec63e3af6e2a7a29b32fc21829bb47bb7 in our repo shows this behavior: the merge itself is authored by me, but it includes a Codex-authored commit (f04be8c1) with [email protected], and Vercel surfaces abiataprado's avatar on the deploy.

Expected behavior

Codex should ship with a default identity on a domain OpenAI controls so that attribution cannot be captured by third parties — for example:

user.name = Codex
user.email = [email protected]

Even better: on first run, detect missing user.email in the active repo and prompt the user to set one, so real contributors never ship with the placeholder in the first place.

Impact

  • Every Codex user who doesn't override the default leaks commit attribution to an unrelated account.
  • A stranger's GitHub avatar appears on production deploys, internal dashboards, and commit histories across many organizations.
  • Attribution cannot be corrected after the fact without rewriting history.
  • Not a security/access issue (no repo access, push rights, or webhooks granted), but a trust and identity-confusion issue affecting every Codex user with the default config.

Root cause

example.com is a reserved documentation domain (RFC 2606) with no MX records — no one can verify it via GitHub's email-verification flow. However, GitHub's public profile "email" field accepts any unverified string, and tools that resolve author emails to GitHub profiles match
against it. Because the default is on a domain OpenAI does not own, the association is first-come-first-served.

Suggested fix

  1. Replace the default user.email with an OpenAI-controlled address (e.g. [email protected]).
  2. On first use, if the active repo has no user.email set, prompt the user to configure one before making commits.
  3. Optionally, document the issue so existing users can check their local/global config.

Happy to provide additional commit SHAs or screenshots if useful.

extent analysis

TL;DR

The most likely fix is to replace the default user.email with an OpenAI-controlled address, such as [email protected], to prevent commit attribution issues.

Guidance

  • Update the default user.email in Codex to a domain controlled by OpenAI, such as [email protected], to prevent third-party attribution.
  • Consider adding a prompt for users to set their own user.email on first use, if it's not already configured, to ensure accurate attribution.
  • Document the issue and provide guidance for existing users to check and update their local/global git config settings.
  • Verify the fix by checking the commit author email after making a commit with the updated Codex configuration.

Example

No code snippet is provided as the issue is related to configuration settings.

Notes

The issue is specific to the default user.email setting in Codex and its impact on commit attribution. The suggested fix focuses on updating this setting to prevent third-party attribution.

Recommendation

Apply the workaround by replacing the default user.email with an OpenAI-controlled address, such as [email protected], to prevent commit attribution issues. This change will ensure that commits made using Codex are accurately attributed to the intended author.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING