Navigation Menu

Skip to content

Interpreting Security vulnerability Response data. #24824

Discussion options

You must be logged in to vote

Node IDs of all types are intended to be opaque. There is nothing you can get from them without requesting more information from the API. You can find the other fields that are available from the RepositoryVulnerabilityAlert object (besides id) in the GraphQL API documentation.

For example, you could use this query:

{
  repository(owner: "Naughtron", name: "test_sec_alerts") {
    vulnerabilityAlerts(first: 100) {
      nodes {
        securityVulnerability {
          package {
            ecosystem
            name
          }
          vulnerableVersionRange
          firstPatchedVersion {
            identifier
          }
        }
      }
    }
  }
}

I hope that helps!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants