vdb/lib/gha.py
def fetch(self, type):
        """Private method to fetch the advisory data via GraphQL api"""
        LOG.debug(
            "Download GitHub advisory from {} with cursor {}".format(
                config.gha_url, type
            )
        )
        r = requests.post(
            url=config.gha_url, json=get_query(type=type), headers=headers
        )
        json_data = r.json()
        return self.convert(json_data)
Private method to fetch the advisory data via GraphQL api
Private method to fetch the advisory data via GraphQL api
Private method to fetch the advisory data via GraphQL api
def fetch(self, type):
        LOG.debug(
            "Download GitHub advisory from {} with cursor {}".format(
                config.gha_url, type
            )
        )
        r = requests.post(
            url=config.gha_url, json=get_query(type=type), headers=headers
        )
        json_data = r.json()
        return self.convert(json_data)
def fetch ( self , type ) : LOG . debug ( "Download GitHub advisory from {} with cursor {}" . format ( config . gha_url , type ) ) r = requests . post ( url = config . gha_url , json = get_query ( type = type ) , headers = headers ) json_data = r . json ( ) return self . convert ( json_data )
Private method to fetch the advisory data via GraphQL api
Private method to fetch the advisory data via GraphQL api
"""Private method to fetch the advisory data via GraphQL api"""
self
type