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:
@@ -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
|
||||
```
|
||||
Reference in New Issue
Block a user