Skip to content

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

Description

@severin

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions