You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The retrieveMonitoredReposBySourceType in Snyk\Index.js does not specify a result limit or do any paging on the underlying Snyk REST API that retrieves monitored repos. This causes incomplete results when counting contributors, as it is only going back to count contributors in the source control for the first 10 monitored repos; 10 being the default page size of the underlying Snyk API.
The following is used to call the Snyk API (line 117):
Without a &limit parameter or paging logic, it will return only 10 results.
The text was updated successfully, but these errors were encountered:
JamesTyzack
changed the title
Incomplete results due to default page limit in retrieveMonitoredReposBySourceType
Incomplete results due to default page size in retrieveMonitoredReposBySourceType
Nov 27, 2023
The
retrieveMonitoredReposBySourceType
in Snyk\Index.js does not specify a result limit or do any paging on the underlying Snyk REST API that retrieves monitored repos. This causes incomplete results when counting contributors, as it is only going back to count contributors in the source control for the first 10 monitored repos; 10 being the default page size of the underlying Snyk API.The following is used to call the Snyk API (line 117):
/orgs/${orgs[i].id}/targets?origin=${SourceType[sourceType]}&version=${snykApiVersion}
Without a
&limit
parameter or paging logic, it will return only 10 results.The text was updated successfully, but these errors were encountered: