MCPcopy Create free account
hub / github.com/aboutcode-org/vulnerablecode / extract_interesting_edge

Function extract_interesting_edge

vulntotal/datasources/github.py:116–121  ·  view source on GitHub ↗
(edges, purl)

Source from the content-addressed store, hash-verified

114
115
116def extract_interesting_edge(edges, purl):
117 interesting_edges = []
118 for edge in edges:
119 if github_constraints_satisfied(edge["node"]["vulnerableVersionRange"], purl.version):
120 interesting_edges.append(edge)
121 return interesting_edges
122
123
124def generate_graphql_payload_from_purl(purl, end_cursor=""):

Callers 1

datasource_advisoryMethod · 0.85

Calls 1

Tested by

no test coverage detected