Commit author attribution when using Private Mirrors App with GitHub Enterprise Managed Users (EMU) #494
Replies: 3 comments 1 reply
|
👋 The attribution flow docs cover the available options here. Within an EMU enterprise, you would follow option 2. Users would log in with their EMU user but make their commits with the email associated with their public GitHub account. Happy to consider documentation improvements to clarify things! |
|
Thank you so much for the quick clarification! This answers exactly what we were trying to understand. Just one follow-up question: Is configuring the Git commit email to the contributor's public GitHub account (while authenticating with the EMU account) the officially recommended and supported approach for production use? Are there any security or compliance considerations that organizations should be aware of when adopting this model? |
|
It is officially supported but whether it is recommended depends on your specific needs and use case. The main considerations when using external commit authors on your EMU org is enforcing it using branch protections on your contribution org if you want to avoid leaking internal commit authors externally, and ensuring that only merge commits are allowed by those branch protections since merge commits have a PMA flag to remove them during syncing but squashes or rebases would potentially leak the internal commit author (since you need to log in as the emu account to merge internal PRs). |
Uh oh!
There was an error while loading. Please reload this page.
Hi PMA team,
We're currently evaluating GitHub Enterprise Managed Users (EMU) together with the Private Mirrors App for our company's open source contribution workflow.
One question we couldn't find answered in the documentation is around author attribution.
Example:
pradeep@company.com(managed via Okta/SCIM)pradeep123A developer makes commits in the private mirror using their EMU identity.
When PMA synchronizes those commits to the public fork and a pull request is eventually opened upstream:
pradeep@company.com) preserved?pradeep123), or will they appear as an unlinked author because the commit email belongs to an EMU identity?Contributor attribution is an important consideration for our engineering organization, so we'd like to understand the recommended approach before adopting PMA.
Thanks!
All reactions