From 325397dfef92292d1a2995dfcbe7f8d39df7c9f7 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Wed, 17 Sep 2025 21:10:35 +0200 Subject: [PATCH] Check repositories length Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com> --- github-recon/username/deep.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/github-recon/username/deep.go b/github-recon/username/deep.go index 0f54c17..25183ec 100644 --- a/github-recon/username/deep.go +++ b/github-recon/username/deep.go @@ -139,6 +139,11 @@ func DeepScan(s github_recon_settings.Settings) (response DeepScanResult) { } s.Logger.Info("Cloned all repositories", "path", tmp_folder) + if len(repositories) == 0 { + s.Logger.Info("No repositories found for the user, skipping deep scan.") + return + } + authorOccurrences := Authors{} mapAuthorToIndex := make(map[string]int) for _, repo := range repositories {