Skip to content

Add CVE, GHSA and OSV tries GraphQL schema#399

Merged
kodiakhq[bot] merged 5 commits intoguacsec:mainfrom
pxp928:graphql-vulns-tries
Feb 3, 2023
Merged

Add CVE, GHSA and OSV tries GraphQL schema#399
kodiakhq[bot] merged 5 commits intoguacsec:mainfrom
pxp928:graphql-vulns-tries

Conversation

@pxp928
Copy link
Copy Markdown
Collaborator

@pxp928 pxp928 commented Feb 3, 2023

Waiting on #398 to merge and this will be rebased!

Add CVE, GHSA and OSV trie Testing done via the testing backend. Neo4j resolver implementation in another PR.

fragment allCveTree on CVE {
  year
  cveId{
    id
  }
}

fragment allGHSATree on GHSA {
  ghsaId{
    id
  }
}

fragment allOSVTree on OSV {
  osvId{
    id
  }
}


query Q1 {
  cve(cveSpec: {year: "1970"}) {
    ...allCveTree
  }
}

query Q2 {
  cve(cveSpec: {cveId: "CVE-2014-8139"}) {
    ...allCveTree
  }
}

query Q3 {
  cve(cveSpec: {year: "2023"}) {
    ...allCveTree
  }
}

query Q4 {
  ghsa(ghsaSpec: {ghsaId: "GHSA-h45f-rjvw-2rv2"}) {
    ...allGHSATree
  }
}

query Q5 {
  ghsa(ghsaSpec: {ghsaId: "GHSA-xrw3-wqph-3fxg"}) {
    ...allGHSATree
  }
}

query Q6 {
  ghsa(ghsaSpec: {}) {
    ...allGHSATree
  }
}

query Q7 {
  osv(osvSpec: {osvId: "CVE-2014-8139"}) {
    ...allOSVTree
  }
}

query Q8 {
  osv(osvSpec: {osvId: "CVE-2022-26499"}) {
    ...allOSVTree
  }
}

query Q9 {
  osv(osvSpec: {}) {
    ...allOSVTree
  }
}

@pxp928
Copy link
Copy Markdown
Collaborator Author

pxp928 commented Feb 3, 2023

Waiting on #398 to merge and this will be rebased!

Comment thread pkg/assembler/backends/testing/backend.go Outdated
Comment thread pkg/assembler/backends/testing/backend.go Outdated
Comment thread pkg/assembler/graphql/schema/osv.graphql Outdated
Copy link
Copy Markdown
Contributor

@lumjjb lumjjb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm with rebase

Comment thread pkg/assembler/backends/testing/backend.go Outdated
Signed-off-by: pxp928 <parth.psu@gmail.com>
Signed-off-by: pxp928 <parth.psu@gmail.com>
Signed-off-by: pxp928 <parth.psu@gmail.com>
Signed-off-by: pxp928 <parth.psu@gmail.com>
@pxp928 pxp928 force-pushed the graphql-vulns-tries branch from f10618c to a84589a Compare February 3, 2023 15:42
@pull-request-size pull-request-size Bot added size/L and removed size/XL labels Feb 3, 2023
@pxp928
Copy link
Copy Markdown
Collaborator Author

pxp928 commented Feb 3, 2023

rebased!

Comment thread pkg/assembler/graphql/schema/cve.graphql Outdated
Signed-off-by: pxp928 <parth.psu@gmail.com>
@kodiakhq kodiakhq Bot merged commit 9279015 into guacsec:main Feb 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants