I'd like to get an overview, for example of all the critical vulnerabilities I have access to view in a GitHub organization.
This answer has allowed me to get a list for a specific repository:
{
repository(name: "repo-name", owner: "repo-owner") {
vulnerabilityAlerts(first: 100) {
nodes {
createdAt
dismissedAt
securityVulnerability {
package {
name
}
advisory {
description
}
}
}
}
}
}
However scanning a large organization manually is just as easy repo-by-repo through the GUI as it is through the API.
Is there a way, preferably in Insomnia, though if not then a CLI version is ok, to get such a list of critical vulnerabilities?
I suspect it can only be done by querying every repo by iterating through the list of all repositories, something like this query I had from something else I was playing with, though was curious if anyone had any other clever solutions to save writing that app:
query{
organization(login: "repo-owner"){
repositories(first: 100){
nodes{
name
}
pageInfo{
hasNextPage
}
}
}
}