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
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:
The text was updated successfully, but these errors were encountered: