feat(catalog-backend-module-github): add config flag for verified email behavior (#33262)

Add a `defaultUserTransformer.useVerifiedEmails` config option to the
githubOrg provider, making the verified domain email behavior from #32997
opt-in rather than the default.

Signed-off-by: Jonathan Roebuck <jroebuck@spotify.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jonathan Roebuck
2026-03-10 16:55:53 +00:00
committed by GitHub
parent bed58405ab
commit 106d1b2a0e
8 changed files with 264 additions and 75 deletions
@@ -0,0 +1,20 @@
---
'@backstage/plugin-catalog-backend-module-github': patch
'@backstage/plugin-catalog-backend-module-github-org': patch
---
Added a `defaultUserTransformer.useVerifiedEmails` config option for the `githubOrg` provider. When set to `true`, the default user transformer prefers organization verified domain emails over the user's public GitHub email. Defaults to `false`, which uses only the public GitHub email.
This option has no effect when a custom user transformer is set via the `githubOrgEntityProviderTransformsExtensionPoint`.
```yaml
catalog:
providers:
githubOrg:
production:
githubUrl: https://github.com
orgs:
- my-org
defaultUserTransformer:
useVerifiedEmails: true
```