diff --git a/packages/repocop/src/remediation/dependency_graph-integrator/send-to-sns.ts b/packages/repocop/src/remediation/dependency_graph-integrator/send-to-sns.ts index 4ac608444..8fad3505a 100644 --- a/packages/repocop/src/remediation/dependency_graph-integrator/send-to-sns.ts +++ b/packages/repocop/src/remediation/dependency_graph-integrator/send-to-sns.ts @@ -145,9 +145,14 @@ export async function sendReposToDependencyGraphIntegrator( ); if (suitableRepos.length !== 0) { - const eventsToSend: DependencyGraphIntegratorEvent[] = shuffle( - createSnsEventsForDependencyGraphIntegration(suitableRepos, repoOwners), - ).slice(0, repoCount); + console.log( + `Found ${suitableRepos.length} suitable repos without dependency submission workflows`, + ); + + const selectedRepos = shuffle(suitableRepos).slice(0, repoCount); + + const eventsToSend: DependencyGraphIntegratorEvent[] = + createSnsEventsForDependencyGraphIntegration(selectedRepos, repoOwners); for (const event of eventsToSend) { await sendOneRepoToDepGraphIntegrator(config, event);