Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work reliably if there are more than 100 vulnerability alerts for the repo #542

Open
severin opened this issue Jul 30, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@severin
Copy link

severin commented Jul 30, 2024

Currently the workflow makes a GraphQL request that looks something like:

repository(owner: "${context.repo.owner}", name: "${context.repo.repo}") { 
  vulnerabilityAlerts(first: 100) {
    nodes {
      ...
    }
  }
}

So only the first 100 alerts are fetched and searched for the current dependency. If a repo has 101 vulnerability alerts and the the one about the current dependency is the 101st then it is not found and no metadata is returned.

This could be addressed by paginating through all vulnerability alerts or by narrowing the query down, i.e. only look up vulnerability alerts for the current dependency (not sure if that is supported though).

@severin severin added the bug Something isn't working label Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant