From ca6d543eebd9430c0d505a749d6ca9566f1802b7 Mon Sep 17 00:00:00 2001 From: grootSH <112615049+Steven4Hooisma@users.noreply.github.com> Date: Thu, 23 Jul 2026 16:23:18 +0200 Subject: [PATCH] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> Signed-off-by: grootSH <112615049+Steven4Hooisma@users.noreply.github.com> --- pkg/accessreview/drivers/upcloud.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/accessreview/drivers/upcloud.go b/pkg/accessreview/drivers/upcloud.go index a07cb38e4..7e1d00181 100644 --- a/pkg/accessreview/drivers/upcloud.go +++ b/pkg/accessreview/drivers/upcloud.go @@ -116,6 +116,7 @@ func (d *UpCloudDriver) ListAccounts(ctx context.Context) ([]AccountRecord, erro records := make([]AccountRecord, 0, len(resp.Accounts.Account)) + for _, a := range resp.Accounts.Account { username := strings.TrimSpace(a.Username) if username == "" { return nil, fmt.Errorf("upcloud returned an account with an empty username")