From 996a1c437a4b56ca48025d11ec652bc13057b7a3 Mon Sep 17 00:00:00 2001 From: Eleftheria Stein-Kousathana Date: Tue, 19 Mar 2024 16:58:04 +0100 Subject: [PATCH] Use correct delegate for GitHub email (#2711) --- internal/providers/github/common.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/providers/github/common.go b/internal/providers/github/common.go index 245da66360..c816f7cdcf 100644 --- a/internal/providers/github/common.go +++ b/internal/providers/github/common.go @@ -668,7 +668,7 @@ func (c *GitHub) GetLogin(ctx context.Context) (string, error) { // GetPrimaryEmail returns the primary email for the acting user func (c *GitHub) GetPrimaryEmail(ctx context.Context) (string, error) { - return c.delegate.GetName(ctx) + return c.delegate.GetPrimaryEmail(ctx) } // setAsRateLimited adds the GitHub to the cache as rate limited.