Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Copilot Lvl 2
Message 1 of 2

GraphQL Repo Vulnerabilities

Solved! Go to Solution.

I need to retrieve the severity of my repo's security vulnerabilities for each individual project using Graphql.

 

I have seen similar questions asked here with several answers saying it is only available to check through Github's UI. I was wondering if anyone had a good workaround or if I am doing something incorrectly?

 

Basically something like this:

 

query {
  repositoryOwner(login: "repoOwner") {
    login
    repositories(last:10) {
      edges{
      node {
        name
        securityVulnerabilities(first:3) {

          nodes {
            severity
          }  

       }
    }
}
}
}
}

 

1 Reply
Solution
wei
Pilot Lvl 2
Message 2 of 2

Re: GraphQL Repo Vulnerabilities

Please look at https://developer.github.com/v4/object/repositoryvulnerabilityalert/. It is still in preview though.