This issue affects repositories that have more than one page of vulnerabilities or dependencies, since both getAllVulnerabilities and getAllDependencies rely on getPaginatedQuery.
I have a PR open that addresses this, but if you don't feel comfortable with it or you are in the middle of some refactoring, please fix getPaginatedQuery. This will cause workflows to keep running until the access token expires, returning a Bad credentials error that masks the actual issue.
Here is an example of code that would address this issue:
The function
getPaginatedQuery
inGitHubDependencies.ts
enters into an infinite loop when there is another page since the cursor is updated in the variablequeryParameters
whilegraphqlParameters
- used for the query - uses the variableparameters
.This issue affects repositories that have more than one page of vulnerabilities or dependencies, since both
getAllVulnerabilities
andgetAllDependencies
rely ongetPaginatedQuery
.I have a PR open that addresses this, but if you don't feel comfortable with it or you are in the middle of some refactoring, please fix
getPaginatedQuery
. This will cause workflows to keep running until the access token expires, returning aBad credentials
error that masks the actual issue.Here is an example of code that would address this issue: