diff --git a/internal/providers/github/clients/app.go b/internal/providers/github/clients/app.go index bf3b130578..b65d3a1e15 100644 --- a/internal/providers/github/clients/app.go +++ b/internal/providers/github/clients/app.go @@ -283,9 +283,7 @@ func (g *GitHubAppDelegate) ListAllRepositories(ctx context.Context) ([]*minderv // GetUserId returns the user id for the GitHub App user func (g *GitHubAppDelegate) GetUserId(ctx context.Context) (int64, error) { // Try to get this user ID from the GitHub API - //nolint:errcheck // this will never error - appUserName, _ := g.GetName(ctx) - user, _, err := g.client.Users.Get(ctx, appUserName) + user, _, err := g.client.Users.Get(ctx, "") if err != nil { // Fallback to the configured user ID // note: this is different from the App ID