guac icon indicating copy to clipboard operation
guac copied to clipboard

[bug] `certifyVulnSpec: { vulnerability: { noVuln: true }` not functioning on ENT?

Open pxp928 opened this issue 1 year ago • 0 comments

Describe the bug

# Setting noVuln to true return all packages that have no vulnerabilities
# Setting noVuln to false return all packages with vulnerabilities
query CertifyNoVuln {
  CertifyVuln(certifyVulnSpec: { vulnerability: { noVuln: false } }) {
    ...allCertifyVulnTree
  }
}

Not working via ENT on graphql playground

To Reproduce Steps to reproduce the behavior:

  1. go run ./cmd/guacgql --gql-debug --gql-backend "ent"
  2. ingest some data (guac-data/docs)
  3. go run ./cmd/guacone certifier osv --poll=false
  4. query in graphql playground the above query and see that novuln is still returned

Expected behavior Query should only return values that don't have type noVuln

GUAC version main

pxp928 avatar May 03 '24 17:05 pxp928